#8940B5#8940B5
#8940B5 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.183 H 310.3°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #8940B5 |
|---|---|
| RGB | rgb(137, 64, 181) |
| HSL | hsl(277, 48%, 48%) |
| HSV | hsv(277, 65%, 71%) |
| CMYK | cmyk(24.3%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(41.72, 50.99, -49.46) |
| CIE-LCH | lch(41.72, 71.04, 315.87°) |
| OKLab | oklab(51.98% 0.1182 -0.1395) |
| OKLCH | oklch(51.98% 0.183 310.3) |
| XYZ | xyz(20.4888, 12.3218, 45.0061) |
| Luminance | 0.1232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.24
Darkorchid
#9932CC
ΔE00 4.17
Royal Purple
#7851A9
ΔE00 5.51
Medium Purple
#9E43A2
ΔE00 6.72
Barney
#AC1DB8
ΔE00 6.76
Blueviolet
#8A2BE2
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8940B5 #6CB540
analogous
#4E40B5 #8940B5 #B540A6
triadic
#8940B5 #B58940 #40B589
tetradic
#8940B5 #B54E40 #6CB540 #40A6B5
square
#8940B5 #B54E40 #6CB540 #40A6B5
split-complementary
#8940B5 #A6B540 #40B54E
monochromatic
#45205B #673088 #8940B5 #A568CA #C096DA
Accessibility & contrast
On white
6.06
#8940B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#8940B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8940B5
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8940B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8940B5 | 1.00 | 6.06 | 3.46 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#3164B2
Tritanopia (blue-blind)
#835775
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8940b5; /* rgb */ color: rgb(137, 64, 181); /* oklch */ color: oklch(52.0% 0.183 310.3);
Tailwind
colors: {
custom: {
50: '#af79cc',
500: '#8940b5',
950: '#000000',
},
}SCSS
$custom: #8940b5; $custom-light: #af79cc; $custom-dark: #000000;
JSON
{
"hex": "#8940b5",
"rgb": {
"r": 137,
"g": 64,
"b": 181
},
"hsl": {
"h": 277.436,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.51975,
"c": 0.18285,
"h": 310.3
},
"luminance": 0.12321
}Semantic roles & 50–950 ramp
primary
#8940B5
secondary
#A1C58B
accent
#D75083
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82