#981F87#981F87
#981F87 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.189 H 334.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #981F87 |
|---|---|
| RGB | rgb(152, 31, 135) |
| HSL | hsl(308, 66%, 36%) |
| HSV | hsv(308, 80%, 60%) |
| CMYK | cmyk(0%, 79.6%, 11.2%, 40.4%) |
| CIE-LAB | lab(36.76, 58.74, -29.51) |
| CIE-LCH | lch(36.76, 65.73, 333.32°) |
| OKLab | oklab(48% 0.1713 -0.0808) |
| OKLCH | oklch(48% 0.189 334.7) |
| XYZ | xyz(17.8123, 9.4063, 23.7945) |
| Luminance | 0.0940 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.44
Barney Purple
#A00498
ΔE00 3.35
Darkmagenta
#8B008B
ΔE00 4.71
Purple
#800080
ΔE00 6.25
Light Eggplant
#894585
ΔE00 6.91
Red Violet
#9E0168
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981F87 #1F9830
analogous
#6C1F98 #981F87 #981F4A
triadic
#981F87 #87981F #1F8798
tetradic
#981F87 #986C1F #1F9830 #1F4A98
square
#981F87 #986C1F #1F9830 #1F4A98
split-complementary
#981F87 #4A981F #1F986C
monochromatic
#320A2D #65155A #981F87 #CB29B4 #DC55C9
Accessibility & contrast
On white
7.29
#981F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#981F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981F87
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981F87 | 1.00 | 7.29 | 2.88 | 7.29 |
| #FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D4B8A
Deuteranopia (green-blind)
#4C5D84
Tritanopia (blue-blind)
#A02B52
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #981f87; /* rgb */ color: rgb(152, 31, 135); /* oklch */ color: oklch(48.0% 0.189 334.7);
Tailwind
colors: {
custom: {
50: '#ba6aaa',
500: '#981f87',
950: '#000000',
},
}SCSS
$custom: #981f87; $custom-light: #ba6aaa; $custom-dark: #000000;
JSON
{
"hex": "#981f87",
"rgb": {
"r": 152,
"g": 31,
"b": 135
},
"hsl": {
"h": 308.43,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.47998,
"c": 0.18941,
"h": 334.7
},
"luminance": 0.09405
}Semantic roles & 50–950 ramp
primary
#981F87
secondary
#53C062
accent
#E9573F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F