#9F218B#9F218B
#9F218B is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.5% C 0.194 H 335.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #9F218B |
|---|---|
| RGB | rgb(159, 33, 139) |
| HSL | hsl(310, 66%, 38%) |
| HSV | hsv(310, 79%, 62%) |
| CMYK | cmyk(0%, 79.2%, 12.6%, 37.6%) |
| CIE-LAB | lab(38.42, 60.34, -29.27) |
| CIE-LCH | lch(38.42, 67.07, 334.12°) |
| OKLab | oklab(49.49% 0.1768 -0.08) |
| OKLCH | oklch(49.49% 0.194 335.7) |
| XYZ | xyz(19.5024, 10.3245, 25.3868) |
| Luminance | 0.1032 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.48
Barney Purple
#A00498
ΔE00 3.32
Darkmagenta
#8B008B
ΔE00 5.92
Ugly Purple
#A442A0
ΔE00 6.42
Medium Purple
#9E43A2
ΔE00 6.65
Light Eggplant
#894585
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F218B #219F35
analogous
#74219F #9F218B #9F214C
triadic
#9F218B #8B9F21 #218B9F
tetradic
#9F218B #9F7421 #219F35 #214C9F
square
#9F218B #9F7421 #219F35 #214C9F
split-complementary
#9F218B #4C9F21 #219F74
monochromatic
#3A0C32 #6C165F #9F218B #D22CB7 #DD5DC9
Accessibility & contrast
On white
6.85
#9F218B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#9F218B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F218B
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F218B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F218B | 1.00 | 6.85 | 3.06 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#224F8E
Deuteranopia (green-blind)
#516188
Tritanopia (blue-blind)
#A72C55
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #9f218b; /* rgb */ color: rgb(159, 33, 139); /* oklch */ color: oklch(49.5% 0.194 335.7);
Tailwind
colors: {
custom: {
50: '#bf6cad',
500: '#9f218b',
950: '#000000',
},
}SCSS
$custom: #9f218b; $custom-light: #bf6cad; $custom-dark: #000000;
JSON
{
"hex": "#9f218b",
"rgb": {
"r": 159,
"g": 33,
"b": 139
},
"hsl": {
"h": 309.524,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.49494,
"c": 0.19409,
"h": 335.7
},
"luminance": 0.10323
}Semantic roles & 50–950 ramp
primary
#9F218B
secondary
#5AC26A
accent
#E95A3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F