#9F2897#9F2897
#9F2897 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.7% C 0.196 H 331.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #9F2897 |
|---|---|
| RGB | rgb(159, 40, 151) |
| HSL | hsl(304, 60%, 39%) |
| HSV | hsv(304, 75%, 62%) |
| CMYK | cmyk(0%, 74.8%, 5%, 37.6%) |
| CIE-LAB | lab(39.79, 60.08, -34.43) |
| CIE-LCH | lch(39.79, 69.24, 330.18°) |
| OKLab | oklab(50.68% 0.1712 -0.0949) |
| OKLCH | oklch(50.68% 0.196 331) |
| XYZ | xyz(20.6428, 11.1245, 30.3322) |
| Luminance | 0.1112 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.00
Barney Purple
#A00498
ΔE00 2.80
Medium Purple
#9E43A2
ΔE00 4.85
Ugly Purple
#A442A0
ΔE00 4.92
Barney
#AC1DB8
ΔE00 5.44
Darkmagenta
#8B008B
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F2897 #289F30
analogous
#6C289F #9F2897 #9F285C
triadic
#9F2897 #979F28 #28979F
tetradic
#9F2897 #9F6C28 #289F30 #285C9F
square
#9F2897 #9F6C28 #289F30 #285C9F
split-complementary
#9F2897 #5C9F28 #289F6C
monochromatic
#3D0F3A #6E1C69 #9F2897 #CD37C3 #D968D2
Accessibility & contrast
On white
6.51
#9F2897 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#9F2897 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F2897
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F2897 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F2897 | 1.00 | 6.51 | 3.22 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C539A
Deuteranopia (green-blind)
#4D6394
Tritanopia (blue-blind)
#A5375D
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #9f2897; /* rgb */ color: rgb(159, 40, 151); /* oklch */ color: oklch(50.7% 0.196 331.0);
Tailwind
colors: {
custom: {
50: '#bf6fb6',
500: '#9f2897',
950: '#000000',
},
}SCSS
$custom: #9f2897; $custom-light: #bf6fb6; $custom-dark: #000000;
JSON
{
"hex": "#9f2897",
"rgb": {
"r": 159,
"g": 40,
"b": 151
},
"hsl": {
"h": 304.034,
"s": 59.799,
"l": 39.02
},
"oklch": {
"l": 0.50682,
"c": 0.19576,
"h": 331
},
"luminance": 0.11123
}Semantic roles & 50–950 ramp
primary
#9F2897
secondary
#64BF6A
accent
#E34F45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80