#9E1F7A#9E1F7A
#9E1F7A is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.3% C 0.184 H 342.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #9E1F7A |
|---|---|
| RGB | rgb(158, 31, 122) |
| HSL | hsl(317, 67%, 37%) |
| HSV | hsv(317, 80%, 62%) |
| CMYK | cmyk(0%, 80.4%, 22.8%, 38%) |
| CIE-LAB | lab(37.22, 58.30, -20.63) |
| CIE-LCH | lch(37.22, 61.84, 340.51°) |
| OKLab | oklab(48.33% 0.1757 -0.0554) |
| OKLCH | oklch(48.33% 0.184 342.5) |
| XYZ | xyz(18.1041, 9.6562, 19.3190) |
| Luminance | 0.0965 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.03
Warm Purple
#952E8F
ΔE00 5.31
Barney Purple
#A00498
ΔE00 6.40
Deep Magenta
#A0025C
ΔE00 6.91
Magenta (survey)
#C20078
ΔE00 7.37
Dark Fuchsia
#9D0759
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E1F7A #1F9E43
analogous
#831F9E #9E1F7A #9E1F3A
triadic
#9E1F7A #7A9E1F #1F7A9E
tetradic
#9E1F7A #9E831F #1F9E43 #1F3A9E
square
#9E1F7A #9E831F #1F9E43 #1F3A9E
split-complementary
#9E1F7A #3A9E1F #1F9E83
monochromatic
#380B2B #6B1552 #9E1F7A #D129A2 #DE59B9
Accessibility & contrast
On white
7.17
#9E1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#9E1F7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #9E1F7A
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E1F7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E1F7A | 1.00 | 7.17 | 2.93 | 7.17 |
| #FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D4A7C
Deuteranopia (green-blind)
#565F77
Tritanopia (blue-blind)
#A8204B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #9e1f7a; /* rgb */ color: rgb(158, 31, 122); /* oklch */ color: oklch(48.3% 0.184 342.5);
Tailwind
colors: {
custom: {
50: '#bf6aa0',
500: '#9e1f7a',
950: '#000000',
},
}SCSS
$custom: #9e1f7a; $custom-light: #bf6aa0; $custom-dark: #000000;
JSON
{
"hex": "#9e1f7a",
"rgb": {
"r": 158,
"g": 31,
"b": 122
},
"hsl": {
"h": 317.008,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.48328,
"c": 0.1842,
"h": 342.5
},
"luminance": 0.09654
}Semantic roles & 50–950 ramp
primary
#9E1F7A
secondary
#56C275
accent
#EA6F3E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E