#9F1787#9F1787
#9F1787 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.7% C 0.200 H 337.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #9F1787 |
|---|---|
| RGB | rgb(159, 23, 135) |
| HSL | hsl(311, 75%, 36%) |
| HSV | hsv(311, 86%, 62%) |
| CMYK | cmyk(0%, 85.5%, 15.1%, 37.6%) |
| CIE-LAB | lab(37.36, 62.23, -28.47) |
| CIE-LCH | lch(37.36, 68.43, 335.42°) |
| OKLab | oklab(48.67% 0.1839 -0.0776) |
| OKLCH | oklch(48.67% 0.2 337.1) |
| XYZ | xyz(18.9781, 9.7349, 23.7965) |
| Luminance | 0.0973 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.33
Barney Purple
#A00498
ΔE00 3.47
Darkmagenta
#8B008B
ΔE00 5.54
Red Violet
#9E0168
ΔE00 6.46
Purple
#800080
ΔE00 7.14
Ugly Purple
#A442A0
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F1787 #179F2F
analogous
#73179F #9F1787 #9F1743
triadic
#9F1787 #879F17 #17879F
tetradic
#9F1787 #9F7317 #179F2F #17439F
square
#9F1787 #9F7317 #179F2F #17439F
split-complementary
#9F1787 #439F17 #179F73
monochromatic
#34082C #6A0F5A #9F1787 #D41FB4 #E54BCA
Accessibility & contrast
On white
7.13
#9F1787 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#9F1787 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #9F1787
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F1787 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F1787 | 1.00 | 7.13 | 2.95 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D4B8A
Deuteranopia (green-blind)
#505F84
Tritanopia (blue-blind)
#A82350
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #9f1787; /* rgb */ color: rgb(159, 23, 135); /* oklch */ color: oklch(48.7% 0.200 337.1);
Tailwind
colors: {
custom: {
50: '#c069aa',
500: '#9f1787',
950: '#000000',
},
}SCSS
$custom: #9f1787; $custom-light: #c069aa; $custom-dark: #000000;
JSON
{
"hex": "#9f1787",
"rgb": {
"r": 159,
"g": 23,
"b": 135
},
"hsl": {
"h": 310.588,
"s": 74.725,
"l": 35.686
},
"oklch": {
"l": 0.48671,
"c": 0.19963,
"h": 337.1
},
"luminance": 0.09733
}Semantic roles & 50–950 ramp
primary
#9F1787
secondary
#4BC761
accent
#F15736
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F