#981A7D#981A7D
#981A7D is a mid, vivid pink. Relative luminance 0.089; OKLCH L 47.1% C 0.187 H 338.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #981A7D |
|---|---|
| RGB | rgb(152, 26, 125) |
| HSL | hsl(313, 71%, 35%) |
| HSV | hsv(313, 83%, 60%) |
| CMYK | cmyk(0%, 82.9%, 17.8%, 40.4%) |
| CIE-LAB | lab(35.78, 58.62, -24.82) |
| CIE-LCH | lch(35.78, 63.65, 337.05°) |
| OKLab | oklab(47.14% 0.1745 -0.0673) |
| OKLCH | oklch(47.14% 0.187 338.9) |
| XYZ | xyz(17.0204, 8.8966, 20.2189) |
| Luminance | 0.0890 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.26
Barney Purple
#A00498
ΔE00 5.06
Red Violet
#9E0168
ΔE00 5.11
Darkmagenta
#8B008B
ΔE00 5.71
Purple
#800080
ΔE00 6.67
Darkish Purple
#751973
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#981A7D #1A9835
analogous
#741A98 #981A7D #981A3E
triadic
#981A7D #7D981A #1A7D98
tetradic
#981A7D #98741A #1A9835 #1A3E98
square
#981A7D #98741A #1A9835 #1A3E98
split-complementary
#981A7D #3E981A #1A9874
monochromatic
#2F0827 #641152 #981A7D #CC23A8 #E04CC1
Accessibility & contrast
On white
7.56
#981A7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#981A7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #981A7D
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##981A7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##981A7D | 1.00 | 7.56 | 2.78 | 7.56 |
| #FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#4F5B7A
Tritanopia (blue-blind)
#A1214B
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #981a7d; /* rgb */ color: rgb(152, 26, 125); /* oklch */ color: oklch(47.1% 0.187 338.9);
Tailwind
colors: {
custom: {
50: '#ba68a3',
500: '#981a7d',
950: '#000000',
},
}SCSS
$custom: #981a7d; $custom-light: #ba68a3; $custom-dark: #000000;
JSON
{
"hex": "#981a7d",
"rgb": {
"r": 152,
"g": 26,
"b": 125
},
"hsl": {
"h": 312.857,
"s": 70.787,
"l": 34.902
},
"oklch": {
"l": 0.47136,
"c": 0.18704,
"h": 338.9
},
"luminance": 0.08895
}Semantic roles & 50–950 ramp
primary
#981A7D
secondary
#4BC265
accent
#EE613A
background
#FBF6FA
surface
#F7EBF3
border
#D0C6CD
text
#12070F
muted
#817A7F