#8F227C#8F227C
#8F227C is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.2% C 0.173 H 336.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #8F227C |
|---|---|
| RGB | rgb(143, 34, 124) |
| HSL | hsl(310, 62%, 35%) |
| HSV | hsv(310, 76%, 56%) |
| CMYK | cmyk(0%, 76.2%, 13.3%, 43.9%) |
| CIE-LAB | lab(34.88, 54.07, -25.72) |
| CIE-LCH | lch(34.88, 59.88, 334.56°) |
| OKLab | oklab(46.16% 0.1587 -0.0701) |
| OKLCH | oklch(46.16% 0.173 336.2) |
| XYZ | xyz(15.5381, 8.4404, 19.8757) |
| Luminance | 0.0844 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.91
Darkmagenta
#8B008B
ΔE00 5.04
Barney Purple
#A00498
ΔE00 5.38
Purple
#800080
ΔE00 5.68
Darkish Purple
#751973
ΔE00 5.68
Red Violet
#9E0168
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F227C #228F35
analogous
#6C228F #8F227C #8F2245
triadic
#8F227C #7C8F22 #227C8F
tetradic
#8F227C #8F6C22 #228F35 #22458F
square
#8F227C #8F6C22 #228F35 #22458F
split-complementary
#8F227C #458F22 #228F6C
monochromatic
#2C0A26 #5E1651 #8F227C #C02EA7 #D755C0
Accessibility & contrast
On white
7.81
#8F227C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#8F227C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8F227C
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F227C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F227C | 1.00 | 7.81 | 2.69 | 7.81 |
| #FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#24487E
Deuteranopia (green-blind)
#4A5879
Tritanopia (blue-blind)
#972A4D
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #8f227c; /* rgb */ color: rgb(143, 34, 124); /* oklch */ color: oklch(46.2% 0.173 336.2);
Tailwind
colors: {
custom: {
50: '#b369a2',
500: '#8f227c',
950: '#000000',
},
}SCSS
$custom: #8f227c; $custom-light: #b369a2; $custom-dark: #000000;
JSON
{
"hex": "#8f227c",
"rgb": {
"r": 143,
"g": 34,
"b": 124
},
"hsl": {
"h": 310.459,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.46164,
"c": 0.17349,
"h": 336.2
},
"luminance": 0.08439
}Semantic roles & 50–950 ramp
primary
#8F227C
secondary
#52BA65
accent
#E55F43
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F