#9E2F7D#9E2F7D
#9E2F7D is a mid, vivid pink. Relative luminance 0.108; OKLCH L 49.8% C 0.168 H 342.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).
Color values
| HEX | #9E2F7D |
|---|---|
| RGB | rgb(158, 47, 125) |
| HSL | hsl(318, 54%, 40%) |
| HSV | hsv(318, 70%, 62%) |
| CMYK | cmyk(0%, 70.3%, 20.9%, 38%) |
| CIE-LAB | lab(39.22, 53.43, -19.41) |
| CIE-LCH | lch(39.22, 56.84, 340.03°) |
| OKLab | oklab(49.82% 0.1601 -0.0521) |
| OKLCH | oklch(49.82% 0.168 342) |
| XYZ | xyz(18.8193, 10.7846, 20.4886) |
| Luminance | 0.1078 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 5.21
Red Violet
#9E0168
ΔE00 5.51
Light Eggplant
#894585
ΔE00 6.12
Bruise
#7E4071
ΔE00 6.99
Magenta (survey)
#C20078
ΔE00 7.15
Barney Purple
#A00498
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E2F7D #2F9E50
analogous
#872F9E #9E2F7D #9E2F45
triadic
#9E2F7D #7D9E2F #2F7D9E
tetradic
#9E2F7D #9E872F #2F9E50 #2F459E
square
#9E2F7D #9E872F #2F9E50 #2F459E
split-complementary
#9E2F7D #459E2F #2F9E87
monochromatic
#401332 #6F2158 #9E2F7D #C743A0 #D572B8
Accessibility & contrast
On white
6.65
#9E2F7D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#9E2F7D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E2F7D
6.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E2F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E2F7D | 1.00 | 6.65 | 3.16 | 6.65 |
| #FFFFFF | 6.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#38517F
Deuteranopia (green-blind)
#5A637A
Tritanopia (blue-blind)
#A83052
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #9e2f7d; /* rgb */ color: rgb(158, 47, 125); /* oklch */ color: oklch(49.8% 0.168 342.0);
Tailwind
colors: {
custom: {
50: '#be71a2',
500: '#9e2f7d',
950: '#000000',
},
}SCSS
$custom: #9e2f7d; $custom-light: #be71a2; $custom-dark: #000000;
JSON
{
"hex": "#9e2f7d",
"rgb": {
"r": 158,
"g": 47,
"b": 125
},
"hsl": {
"h": 317.838,
"s": 54.146,
"l": 40.196
},
"oklch": {
"l": 0.49821,
"c": 0.1683,
"h": 342
},
"luminance": 0.10783
}Semantic roles & 50–950 ramp
primary
#9E2F7D
secondary
#6CBD84
accent
#DE764A
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F