#981C7F#981C7F
#981C7F is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.4% C 0.187 H 338.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).
Color values
| HEX | #981C7F |
|---|---|
| RGB | rgb(152, 28, 127) |
| HSL | hsl(312, 69%, 35%) |
| HSV | hsv(312, 82%, 60%) |
| CMYK | cmyk(0%, 81.6%, 16.4%, 40.4%) |
| CIE-LAB | lab(36.06, 58.39, -25.63) |
| CIE-LCH | lch(36.06, 63.77, 336.30°) |
| OKLab | oklab(47.37% 0.1732 -0.0697) |
| OKLCH | oklch(47.37% 0.187 338.1) |
| XYZ | xyz(17.1953, 9.0399, 20.9138) |
| Luminance | 0.0904 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.83
Barney Purple
#A00498
ΔE00 4.73
Red Violet
#9E0168
ΔE00 5.51
Darkmagenta
#8B008B
ΔE00 5.53
Purple
#800080
ΔE00 6.60
Darkish Purple
#751973
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981C7F #1C9835
analogous
#731C98 #981C7F #981C41
triadic
#981C7F #7F981C #1C7F98
tetradic
#981C7F #98731C #1C9835 #1C4198
square
#981C7F #98731C #1C9835 #1C4198
split-complementary
#981C7F #41981C #1C9873
monochromatic
#310929 #641254 #981C7F #CC26AA #DF50C2
Accessibility & contrast
On white
7.48
#981C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#981C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981C7F
7.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981C7F | 1.00 | 7.48 | 2.81 | 7.48 |
| #FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#234982
Deuteranopia (green-blind)
#4E5B7C
Tritanopia (blue-blind)
#A1244D
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #981c7f; /* rgb */ color: rgb(152, 28, 127); /* oklch */ color: oklch(47.4% 0.187 338.1);
Tailwind
colors: {
custom: {
50: '#ba69a4',
500: '#981c7f',
950: '#000000',
},
}SCSS
$custom: #981c7f; $custom-light: #ba69a4; $custom-dark: #000000;
JSON
{
"hex": "#981c7f",
"rgb": {
"r": 152,
"g": 28,
"b": 127
},
"hsl": {
"h": 312.097,
"s": 68.889,
"l": 35.294
},
"oklch": {
"l": 0.47367,
"c": 0.18664,
"h": 338.1
},
"luminance": 0.09038
}Semantic roles & 50–950 ramp
primary
#981C7F
secondary
#4EC166
accent
#EC5F3C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F