#8940C0#8940C0
#8940C0 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.194 H 307.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #8940C0 |
|---|---|
| RGB | rgb(137, 64, 192) |
| HSL | hsl(274, 50%, 50%) |
| HSV | hsv(274, 67%, 75%) |
| CMYK | cmyk(28.6%, 66.7%, 0%, 24.7%) |
| CIE-LAB | lab(42.45, 53.49, -54.74) |
| CIE-LCH | lch(42.45, 76.54, 314.34°) |
| OKLab | oklab(52.73% 0.1173 -0.155) |
| OKLCH | oklch(52.73% 0.194 307.1) |
| XYZ | xyz(21.6623, 12.7912, 51.1867) |
| Luminance | 0.1279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.28
Purply
#983FB2
ΔE00 4.32
Blueviolet
#8A2BE2
ΔE00 5.31
Royal Purple
#7851A9
ΔE00 6.07
Darkviolet
#9400D3
ΔE00 6.21
Violet (survey)
#9A0EEA
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8940C0 #77C040
analogous
#4940C0 #8940C0 #C040B7
triadic
#8940C0 #C08940 #40C089
tetradic
#8940C0 #C04940 #77C040 #40B7C0
square
#8940C0 #C04940 #77C040 #40B7C0
split-complementary
#8940C0 #B7C040 #40C049
monochromatic
#482164 #683092 #8940C0 #A56ECF #C29CDE
Accessibility & contrast
On white
5.90
#8940C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#8940C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8940C0
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8940C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8940C0 | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#2265BD
Tritanopia (blue-blind)
#805C7B
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8940c0; /* rgb */ color: rgb(137, 64, 192); /* oklch */ color: oklch(52.7% 0.194 307.1);
Tailwind
colors: {
custom: {
50: '#b07ad4',
500: '#8940c0',
950: '#000000',
},
}SCSS
$custom: #8940c0; $custom-light: #b07ad4; $custom-dark: #000000;
JSON
{
"hex": "#8940c0",
"rgb": {
"r": 137,
"g": 64,
"b": 192
},
"hsl": {
"h": 274.219,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.52726,
"c": 0.19444,
"h": 307.1
},
"luminance": 0.12791
}Semantic roles & 50–950 ramp
primary
#8940C0
secondary
#AACB91
accent
#DA4E8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83