#9F238C#9F238C
#9F238C is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.193 H 335.3°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).
Color values
| HEX | #9F238C |
|---|---|
| RGB | rgb(159, 35, 140) |
| HSL | hsl(309, 64%, 38%) |
| HSV | hsv(309, 78%, 62%) |
| CMYK | cmyk(0%, 78%, 11.9%, 37.6%) |
| CIE-LAB | lab(38.67, 59.92, -29.49) |
| CIE-LCH | lch(38.67, 66.78, 333.80°) |
| OKLab | oklab(49.69% 0.1752 -0.0806) |
| OKLCH | oklch(49.69% 0.193 335.3) |
| XYZ | xyz(19.6330, 10.4682, 25.7924) |
| Luminance | 0.1047 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.31
Barney Purple
#A00498
ΔE00 3.34
Darkmagenta
#8B008B
ΔE00 6.03
Ugly Purple
#A442A0
ΔE00 6.15
Medium Purple
#9E43A2
ΔE00 6.37
Light Eggplant
#894585
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F238C #239F36
analogous
#74239F #9F238C #9F234E
triadic
#9F238C #8C9F23 #238C9F
tetradic
#9F238C #9F7423 #239F36 #234E9F
square
#9F238C #9F7423 #239F36 #234E9F
split-complementary
#9F238C #4E9F23 #239F74
monochromatic
#3B0D34 #6D1860 #9F238C #D12EB8 #DC60C9
Accessibility & contrast
On white
6.79
#9F238C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#9F238C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F238C
6.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F238C | 1.00 | 6.79 | 3.09 | 6.79 |
| #FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#516289
Tritanopia (blue-blind)
#A72E56
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #9f238c; /* rgb */ color: rgb(159, 35, 140); /* oklch */ color: oklch(49.7% 0.193 335.3);
Tailwind
colors: {
custom: {
50: '#bf6dae',
500: '#9f238c',
950: '#000000',
},
}SCSS
$custom: #9f238c; $custom-light: #bf6dae; $custom-dark: #000000;
JSON
{
"hex": "#9f238c",
"rgb": {
"r": 159,
"g": 35,
"b": 140
},
"hsl": {
"h": 309.194,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.49691,
"c": 0.19286,
"h": 335.3
},
"luminance": 0.10466
}Semantic roles & 50–950 ramp
primary
#9F238C
secondary
#5DC16C
accent
#E75A41
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F