#9D158B Hex Code

Magenta Color Codes

#9D158B
Click to copy

Color Information

Name:Magenta
Luminance:0.096
Web Safe:No

Background Preview

Sample Text
#9D158B as text color

This shows how the color appears on different backgrounds

Color Formats

HEX

#9D158B
Hexadecimal color code

RGB

rgb(157, 21, 139)
Red, Green, Blue values (0-255)

HSL

hsl(308, 76%, 35%)
Hue, Saturation, Lightness

HSV

hsv(308, 87%, 62%)
Hue, Saturation, Value

CMYK

cmyk(0%, 87%, 11%, 38%)
Cyan, Magenta, Yellow, Key (Black)

LAB

lab(37.06, 62.8, -31.45)
Lightness, A (green-red), B (blue-yellow)
Accessibility Information

Contrast Ratios

White BackgroundAAA
Aa
Ratio: 7.21:1100/100
Black Backgroundfail
Aa
Ratio: 2.91:149/100
Gray Backgroundfail
Aa
Ratio: 1.82:130/100

WCAG Guidelines

AAAContrast ratio of 7:1 or higher (Enhanced)
AAContrast ratio of 4.5:1 or higher (Standard)
FAILContrast ratio below 4.5:1 (Not recommended)
Color Harmonies

Complementary

2 colors

Colors opposite on the color wheel

Triadic

3 colors

Three colors evenly spaced on the color wheel

Analogous

5 colors

Colors adjacent on the color wheel

Monochromatic

5 colors

Different shades of the same hue

Split Complementary

3 colors

Base color plus two colors adjacent to its complement