#981B7F#981B7F
#981B7F is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.3% C 0.188 H 338.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).
Color values
| HEX | #981B7F |
|---|---|
| RGB | rgb(152, 27, 127) |
| HSL | hsl(312, 70%, 35%) |
| HSV | hsv(312, 82%, 60%) |
| CMYK | cmyk(0%, 82.2%, 16.4%, 40.4%) |
| CIE-LAB | lab(35.97, 58.65, -25.78) |
| CIE-LCH | lch(35.97, 64.06, 336.27°) |
| OKLab | oklab(47.3% 0.1739 -0.0701) |
| OKLCH | oklch(47.3% 0.188 338.1) |
| XYZ | xyz(17.1720, 8.9933, 20.9061) |
| Luminance | 0.0899 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.87
Barney Purple
#A00498
ΔE00 4.69
Darkmagenta
#8B008B
ΔE00 5.45
Red Violet
#9E0168
ΔE00 5.51
Purple
#800080
ΔE00 6.53
Darkish Purple
#751973
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981B7F #1B9834
analogous
#721B98 #981B7F #981B41
triadic
#981B7F #7F981B #1B7F98
tetradic
#981B7F #98721B #1B9834 #1B4198
square
#981B7F #98721B #1B9834 #1B4198
split-complementary
#981B7F #41981B #1B9872
monochromatic
#300928 #641254 #981B7F #CC24AA #E04EC2
Accessibility & contrast
On white
7.50
#981B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#981B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981B7F
7.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981B7F | 1.00 | 7.50 | 2.80 | 7.50 |
| #FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#224882
Deuteranopia (green-blind)
#4E5B7C
Tritanopia (blue-blind)
#A1234D
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #981b7f; /* rgb */ color: rgb(152, 27, 127); /* oklch */ color: oklch(47.3% 0.188 338.1);
Tailwind
colors: {
custom: {
50: '#ba68a4',
500: '#981b7f',
950: '#000000',
},
}SCSS
$custom: #981b7f; $custom-light: #ba68a4; $custom-dark: #000000;
JSON
{
"hex": "#981b7f",
"rgb": {
"r": 152,
"g": 27,
"b": 127
},
"hsl": {
"h": 312,
"s": 69.832,
"l": 35.098
},
"oklch": {
"l": 0.47302,
"c": 0.18751,
"h": 338.1
},
"luminance": 0.08992
}Semantic roles & 50–950 ramp
primary
#981B7F
secondary
#4DC264
accent
#ED5F3B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F