#981F7F#981F7F
#981F7F is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.6% C 0.184 H 338.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).
Color values
| HEX | #981F7F |
|---|---|
| RGB | rgb(152, 31, 127) |
| HSL | hsl(312, 66%, 36%) |
| HSV | hsv(312, 80%, 60%) |
| CMYK | cmyk(0%, 79.6%, 16.4%, 40.4%) |
| CIE-LAB | lab(36.35, 57.57, -25.19) |
| CIE-LCH | lch(36.35, 62.84, 336.37°) |
| OKLab | oklab(47.57% 0.1707 -0.0684) |
| OKLCH | oklch(47.57% 0.184 338.2) |
| XYZ | xyz(17.2701, 9.1894, 20.9388) |
| Luminance | 0.0919 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.73
Barney Purple
#A00498
ΔE00 4.86
Red Violet
#9E0168
ΔE00 5.52
Darkmagenta
#8B008B
ΔE00 5.77
Purple
#800080
ΔE00 6.85
Light Eggplant
#894585
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981F7F #1F9838
analogous
#741F98 #981F7F #981F42
triadic
#981F7F #7F981F #1F7F98
tetradic
#981F7F #98741F #1F9838 #1F4298
square
#981F7F #98741F #1F9838 #1F4298
split-complementary
#981F7F #42981F #1F9874
monochromatic
#320A2A #651555 #981F7F #CB29A9 #DC55C0
Accessibility & contrast
On white
7.40
#981F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#981F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981F7F
7.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981F7F | 1.00 | 7.40 | 2.84 | 7.40 |
| #FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#254A82
Deuteranopia (green-blind)
#4F5C7C
Tritanopia (blue-blind)
#A1264E
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #981f7f; /* rgb */ color: rgb(152, 31, 127); /* oklch */ color: oklch(47.6% 0.184 338.2);
Tailwind
colors: {
custom: {
50: '#ba6aa4',
500: '#981f7f',
950: '#000000',
},
}SCSS
$custom: #981f7f; $custom-light: #ba6aa4; $custom-dark: #000000;
JSON
{
"hex": "#981f7f",
"rgb": {
"r": 152,
"g": 31,
"b": 127
},
"hsl": {
"h": 312.397,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.47572,
"c": 0.18388,
"h": 338.2
},
"luminance": 0.09188
}Semantic roles & 50–950 ramp
primary
#981F7F
secondary
#53C069
accent
#E9623F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F