#8940B2#8940B2
#8940B2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.180 H 311.2°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #8940B2 |
|---|---|
| RGB | rgb(137, 64, 178) |
| HSL | hsl(278, 47%, 47%) |
| HSV | hsv(278, 64%, 70%) |
| CMYK | cmyk(23%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(41.53, 50.32, -48.00) |
| CIE-LCH | lch(41.53, 69.54, 316.35°) |
| OKLab | oklab(51.78% 0.1183 -0.1352) |
| OKLCH | oklch(51.78% 0.18 311.2) |
| XYZ | xyz(20.1843, 12.2000, 43.4024) |
| Luminance | 0.1220 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.05
Darkorchid
#9932CC
ΔE00 4.52
Royal Purple
#7851A9
ΔE00 5.45
Medium Purple
#9E43A2
ΔE00 6.36
Barney
#AC1DB8
ΔE00 6.68
Darkviolet
#9400D3
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8940B2 #69B240
analogous
#5040B2 #8940B2 #B240A2
triadic
#8940B2 #B28940 #40B289
tetradic
#8940B2 #B25040 #69B240 #40A2B2
square
#8940B2 #B25040 #69B240 #40A2B2
split-complementary
#8940B2 #A2B240 #40B250
monochromatic
#442058 #663085 #8940B2 #A567C8 #C094D8
Accessibility & contrast
On white
6.10
#8940B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.44
#8940B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8940B2
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8940B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8940B2 | 1.00 | 6.10 | 3.44 | 6.10 |
| #FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#035EB5
Deuteranopia (green-blind)
#3463AF
Tritanopia (blue-blind)
#845673
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8940b2; /* rgb */ color: rgb(137, 64, 178); /* oklch */ color: oklch(51.8% 0.180 311.2);
Tailwind
colors: {
custom: {
50: '#af79ca',
500: '#8940b2',
950: '#000000',
},
}SCSS
$custom: #8940b2; $custom-light: #af79ca; $custom-dark: #000000;
JSON
{
"hex": "#8940b2",
"rgb": {
"r": 137,
"g": 64,
"b": 178
},
"hsl": {
"h": 278.421,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.51776,
"c": 0.17969,
"h": 311.2
},
"luminance": 0.122
}Semantic roles & 50–950 ramp
primary
#8940B2
secondary
#9FC48A
accent
#D75181
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82