#981F7D#981F7D
#981F7D is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.5% C 0.183 H 339.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).
Color values
| HEX | #981F7D |
|---|---|
| RGB | rgb(152, 31, 125) |
| HSL | hsl(313, 66%, 36%) |
| HSV | hsv(313, 80%, 60%) |
| CMYK | cmyk(0%, 79.6%, 17.8%, 40.4%) |
| CIE-LAB | lab(36.25, 57.28, -24.09) |
| CIE-LCH | lch(36.25, 62.14, 337.19°) |
| OKLab | oklab(47.47% 0.1705 -0.0653) |
| OKLCH | oklch(47.47% 0.183 339) |
| XYZ | xyz(17.1410, 9.1378, 20.2591) |
| Luminance | 0.0914 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.11
Red Violet
#9E0168
ΔE00 5.12
Barney Purple
#A00498
ΔE00 5.27
Darkmagenta
#8B008B
ΔE00 6.10
Purple
#800080
ΔE00 7.07
Light Eggplant
#894585
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981F7D #1F983A
analogous
#761F98 #981F7D #981F41
triadic
#981F7D #7D981F #1F7D98
tetradic
#981F7D #98761F #1F983A #1F4198
square
#981F7D #98761F #1F983A #1F4198
split-complementary
#981F7D #41981F #1F9876
monochromatic
#320A29 #651553 #981F7D #CB29A7 #DC55BE
Accessibility & contrast
On white
7.43
#981F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#981F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981F7D
7.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981F7D | 1.00 | 7.43 | 2.83 | 7.43 |
| #FFFFFF | 7.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#27497F
Deuteranopia (green-blind)
#505C7A
Tritanopia (blue-blind)
#A1254D
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #981f7d; /* rgb */ color: rgb(152, 31, 125); /* oklch */ color: oklch(47.5% 0.183 339.0);
Tailwind
colors: {
custom: {
50: '#ba69a3',
500: '#981f7d',
950: '#000000',
},
}SCSS
$custom: #981f7d; $custom-light: #ba69a3; $custom-dark: #000000;
JSON
{
"hex": "#981f7d",
"rgb": {
"r": 152,
"g": 31,
"b": 125
},
"hsl": {
"h": 313.388,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.47469,
"c": 0.18254,
"h": 339
},
"luminance": 0.09136
}Semantic roles & 50–950 ramp
primary
#981F7D
secondary
#53C06B
accent
#E9653F
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F