#981F7C#981F7C
#981F7C is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.4% C 0.182 H 339.5°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).
Color values
| HEX | #981F7C |
|---|---|
| RGB | rgb(152, 31, 124) |
| HSL | hsl(314, 66%, 36%) |
| HSV | hsv(314, 80%, 60%) |
| CMYK | cmyk(0%, 79.6%, 18.4%, 40.4%) |
| CIE-LAB | lab(36.20, 57.14, -23.55) |
| CIE-LCH | lch(36.20, 61.80, 337.60°) |
| OKLab | oklab(47.42% 0.1703 -0.0637) |
| OKLCH | oklch(47.42% 0.182 339.5) |
| XYZ | xyz(17.0774, 9.1123, 19.9244) |
| Luminance | 0.0911 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.30
Red Violet
#9E0168
ΔE00 4.92
Barney Purple
#A00498
ΔE00 5.47
Darkmagenta
#8B008B
ΔE00 6.26
Light Eggplant
#894585
ΔE00 7.13
Purple
#800080
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981F7C #1F983B
analogous
#771F98 #981F7C #981F40
triadic
#981F7C #7C981F #1F7C98
tetradic
#981F7C #98771F #1F983B #1F4098
square
#981F7C #98771F #1F983B #1F4098
split-complementary
#981F7C #40981F #1F9877
monochromatic
#320A29 #651553 #981F7C #CB29A5 #DC55BD
Accessibility & contrast
On white
7.44
#981F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#981F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981F7C
7.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981F7C | 1.00 | 7.44 | 2.82 | 7.44 |
| #FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28497E
Deuteranopia (green-blind)
#505C79
Tritanopia (blue-blind)
#A1244C
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #981f7c; /* rgb */ color: rgb(152, 31, 124); /* oklch */ color: oklch(47.4% 0.182 339.5);
Tailwind
colors: {
custom: {
50: '#ba69a2',
500: '#981f7c',
950: '#000000',
},
}SCSS
$custom: #981f7c; $custom-light: #ba69a2; $custom-dark: #000000;
JSON
{
"hex": "#981f7c",
"rgb": {
"r": 152,
"g": 31,
"b": 124
},
"hsl": {
"h": 313.884,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.47418,
"c": 0.18187,
"h": 339.5
},
"luminance": 0.09111
}Semantic roles & 50–950 ramp
primary
#981F7C
secondary
#53C06C
accent
#E9663F
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F