#981F7A#981F7A
#981F7A is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.3% C 0.181 H 340.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).
Color values
| HEX | #981F7A |
|---|---|
| RGB | rgb(152, 31, 122) |
| HSL | hsl(315, 66%, 36%) |
| HSV | hsv(315, 80%, 60%) |
| CMYK | cmyk(0%, 79.6%, 19.7%, 40.4%) |
| CIE-LAB | lab(36.10, 56.86, -22.44) |
| CIE-LCH | lch(36.10, 61.13, 338.46°) |
| OKLab | oklab(47.32% 0.1701 -0.0606) |
| OKLCH | oklch(47.32% 0.181 340.4) |
| XYZ | xyz(16.9523, 9.0623, 19.2650) |
| Luminance | 0.0906 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.52
Warm Purple
#952E8F
ΔE00 4.70
Barney Purple
#A00498
ΔE00 5.89
Darkmagenta
#8B008B
ΔE00 6.61
Light Eggplant
#894585
ΔE00 7.25
Purple
#800080
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981F7A #1F983D
analogous
#791F98 #981F7A #981F3D
triadic
#981F7A #7A981F #1F7A98
tetradic
#981F7A #98791F #1F983D #1F3D98
square
#981F7A #98791F #1F983D #1F3D98
split-complementary
#981F7A #3D981F #1F9879
monochromatic
#320A28 #651551 #981F7A #CB29A3 #DC55BB
Accessibility & contrast
On white
7.47
#981F7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#981F7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981F7A
7.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981F7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981F7A | 1.00 | 7.47 | 2.81 | 7.47 |
| #FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#29497C
Deuteranopia (green-blind)
#515C77
Tritanopia (blue-blind)
#A1234B
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #981f7a; /* rgb */ color: rgb(152, 31, 122); /* oklch */ color: oklch(47.3% 0.181 340.4);
Tailwind
colors: {
custom: {
50: '#ba69a0',
500: '#981f7a',
950: '#000000',
},
}SCSS
$custom: #981f7a; $custom-light: #ba69a0; $custom-dark: #000000;
JSON
{
"hex": "#981f7a",
"rgb": {
"r": 152,
"g": 31,
"b": 122
},
"hsl": {
"h": 314.876,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.47318,
"c": 0.18057,
"h": 340.4
},
"luminance": 0.09061
}Semantic roles & 50–950 ramp
primary
#981F7A
secondary
#53C06E
accent
#E9693F
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E