#8C237A#8C237A
#8C237A is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.7% C 0.169 H 335.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).
Color values
| HEX | #8C237A |
|---|---|
| RGB | rgb(140, 35, 122) |
| HSL | hsl(310, 60%, 34%) |
| HSV | hsv(310, 75%, 55%) |
| CMYK | cmyk(0%, 75%, 12.9%, 45.1%) |
| CIE-LAB | lab(34.36, 52.69, -25.32) |
| CIE-LCH | lch(34.36, 58.46, 334.33°) |
| OKLab | oklab(45.65% 0.1544 -0.0691) |
| OKLCH | oklch(45.65% 0.169 335.9) |
| XYZ | xyz(14.9293, 8.1840, 19.2020) |
| Luminance | 0.0818 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.27
Darkmagenta
#8B008B
ΔE00 5.10
Darkish Purple
#751973
ΔE00 5.23
Purple
#800080
ΔE00 5.50
Barney Purple
#A00498
ΔE00 5.83
Red Violet
#9E0168
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C237A #238C35
analogous
#6A238C #8C237A #8C2346
triadic
#8C237A #7A8C23 #237A8C
tetradic
#8C237A #8C6A23 #238C35 #23468C
square
#8C237A #8C6A23 #238C35 #23468C
split-complementary
#8C237A #468C23 #238C6A
monochromatic
#2A0B25 #5B174F #8C237A #BD2FA5 #D455BF
Accessibility & contrast
On white
7.96
#8C237A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#8C237A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8C237A
7.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C237A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C237A | 1.00 | 7.96 | 2.64 | 7.96 |
| #FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#495678
Tritanopia (blue-blind)
#932B4C
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #8c237a; /* rgb */ color: rgb(140, 35, 122); /* oklch */ color: oklch(45.7% 0.169 335.9);
Tailwind
colors: {
custom: {
50: '#b169a0',
500: '#8c237a',
950: '#000000',
},
}SCSS
$custom: #8c237a; $custom-light: #b169a0; $custom-dark: #000000;
JSON
{
"hex": "#8c237a",
"rgb": {
"r": 140,
"g": 35,
"b": 122
},
"hsl": {
"h": 310.286,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.45654,
"c": 0.16913,
"h": 335.9
},
"luminance": 0.08183
}Semantic roles & 50–950 ramp
primary
#8C237A
secondary
#52B864
accent
#E36045
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E