#8F40B2#8F40B2
#8F40B2 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.5% C 0.182 H 313.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #8F40B2 |
|---|---|
| RGB | rgb(143, 64, 178) |
| HSL | hsl(282, 47%, 47%) |
| HSV | hsv(282, 64%, 70%) |
| CMYK | cmyk(19.7%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(42.34, 51.74, -46.66) |
| CIE-LCH | lch(42.34, 69.67, 317.96°) |
| OKLab | oklab(52.53% 0.126 -0.1311) |
| OKLCH | oklch(52.53% 0.182 313.9) |
| XYZ | xyz(21.1956, 12.7214, 43.4498) |
| Luminance | 0.1272 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.82
Darkorchid
#9932CC
ΔE00 4.31
Medium Purple
#9E43A2
ΔE00 5.29
Barney
#AC1DB8
ΔE00 5.75
Royal Purple
#7851A9
ΔE00 6.10
Ugly Purple
#A442A0
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F40B2 #63B240
analogous
#5640B2 #8F40B2 #B2409C
triadic
#8F40B2 #B28F40 #40B28F
tetradic
#8F40B2 #B25640 #63B240 #409CB2
square
#8F40B2 #B25640 #63B240 #409CB2
split-complementary
#8F40B2 #9CB240 #40B256
monochromatic
#472058 #6B3085 #8F40B2 #AA67C8 #C394D8
Accessibility & contrast
On white
5.93
#8F40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#8F40B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F40B2
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F40B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F40B2 | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F60B5
Deuteranopia (green-blind)
#3B66AF
Tritanopia (blue-blind)
#8C5573
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8f40b2; /* rgb */ color: rgb(143, 64, 178); /* oklch */ color: oklch(52.5% 0.182 313.9);
Tailwind
colors: {
custom: {
50: '#b37aca',
500: '#8f40b2',
950: '#000000',
},
}SCSS
$custom: #8f40b2; $custom-light: #b37aca; $custom-dark: #000000;
JSON
{
"hex": "#8f40b2",
"rgb": {
"r": 143,
"g": 64,
"b": 178
},
"hsl": {
"h": 281.579,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.52531,
"c": 0.18188,
"h": 313.9
},
"luminance": 0.12721
}Semantic roles & 50–950 ramp
primary
#8F40B2
secondary
#9CC48A
accent
#D7517A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82