#981E7F#981E7F
#981E7F is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.5% C 0.185 H 338.1°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).
Color values
| HEX | #981E7F |
|---|---|
| RGB | rgb(152, 30, 127) |
| HSL | hsl(312, 67%, 36%) |
| HSV | hsv(312, 80%, 60%) |
| CMYK | cmyk(0%, 80.3%, 16.4%, 40.4%) |
| CIE-LAB | lab(36.25, 57.85, -25.34) |
| CIE-LCH | lch(36.25, 63.15, 336.34°) |
| OKLab | oklab(47.5% 0.1715 -0.0688) |
| OKLCH | oklch(47.5% 0.185 338.1) |
| XYZ | xyz(17.2443, 9.1379, 20.9302) |
| Luminance | 0.0914 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.76
Barney Purple
#A00498
ΔE00 4.81
Red Violet
#9E0168
ΔE00 5.51
Darkmagenta
#8B008B
ΔE00 5.69
Purple
#800080
ΔE00 6.77
Light Eggplant
#894585
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981E7F #1E9837
analogous
#741E98 #981E7F #981E42
triadic
#981E7F #7F981E #1E7F98
tetradic
#981E7F #98741E #1E9837 #1E4298
square
#981E7F #98741E #1E9837 #1E4298
split-complementary
#981E7F #42981E #1E9874
monochromatic
#320A2A #651454 #981E7F #CB28AA #DD53C1
Accessibility & contrast
On white
7.43
#981E7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#981E7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981E7F
7.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981E7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981E7F | 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)
#244982
Deuteranopia (green-blind)
#4F5C7C
Tritanopia (blue-blind)
#A1254D
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #981e7f; /* rgb */ color: rgb(152, 30, 127); /* oklch */ color: oklch(47.5% 0.185 338.1);
Tailwind
colors: {
custom: {
50: '#ba69a4',
500: '#981e7f',
950: '#000000',
},
}SCSS
$custom: #981e7f; $custom-light: #ba69a4; $custom-dark: #000000;
JSON
{
"hex": "#981e7f",
"rgb": {
"r": 152,
"g": 30,
"b": 127
},
"hsl": {
"h": 312.295,
"s": 67.033,
"l": 35.686
},
"oklch": {
"l": 0.47501,
"c": 0.18482,
"h": 338.1
},
"luminance": 0.09136
}Semantic roles & 50–950 ramp
primary
#981E7F
secondary
#51C068
accent
#EA613E
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F