#8C229F#8C229F
#8C229F is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.8% C 0.200 H 320.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #8C229F |
|---|---|
| RGB | rgb(140, 34, 159) |
| HSL | hsl(291, 65%, 38%) |
| HSV | hsv(291, 79%, 62%) |
| CMYK | cmyk(11.9%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(36.41, 59.32, -44.85) |
| CIE-LCH | lch(36.41, 74.36, 322.91°) |
| OKLab | oklab(47.81% 0.1549 -0.1257) |
| OKLCH | oklch(47.81% 0.2 320.9) |
| XYZ | xyz(17.6445, 9.2237, 33.6451) |
| Luminance | 0.0922 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.93
Barney Purple
#A00498
ΔE00 4.33
Darkmagenta
#8B008B
ΔE00 4.34
Warm Purple
#952E8F
ΔE00 4.91
Purple
#800080
ΔE00 6.22
Purply
#983FB2
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C229F #359F22
analogous
#4D229F #8C229F #9F2273
triadic
#8C229F #9F8C22 #229F8C
tetradic
#8C229F #9F4D22 #359F22 #22739F
square
#8C229F #9F4D22 #359F22 #22739F
split-complementary
#8C229F #739F22 #229F4D
monochromatic
#330C3A #60176D #8C229F #B82DD1 #CA5FDD
Accessibility & contrast
On white
7.38
#8C229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#8C229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8C229F
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C229F | 1.00 | 7.38 | 2.84 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#31599C
Tritanopia (blue-blind)
#8D3C60
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #8c229f; /* rgb */ color: rgb(140, 34, 159); /* oklch */ color: oklch(47.8% 0.200 320.9);
Tailwind
colors: {
custom: {
50: '#b26abc',
500: '#8c229f',
950: '#000000',
},
}SCSS
$custom: #8c229f; $custom-light: #b26abc; $custom-dark: #000000;
JSON
{
"hex": "#8c229f",
"rgb": {
"r": 140,
"g": 34,
"b": 159
},
"hsl": {
"h": 290.88,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.47813,
"c": 0.1995,
"h": 320.9
},
"luminance": 0.09223
}Semantic roles & 50–950 ramp
primary
#8C229F
secondary
#6BC15B
accent
#E8405A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81