#8942C7#8942C7
#8942C7 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.5% C 0.199 H 305.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).
Color values
| HEX | #8942C7 |
|---|---|
| RGB | rgb(137, 66, 199) |
| HSL | hsl(272, 54%, 52%) |
| HSV | hsv(272, 67%, 78%) |
| CMYK | cmyk(31.2%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(43.27, 54.16, -57.49) |
| CIE-LCH | lch(43.27, 78.98, 313.29°) |
| OKLab | oklab(53.47% 0.1144 -0.1631) |
| OKLCH | oklch(53.47% 0.199 305) |
| XYZ | xyz(22.5713, 13.3385, 55.4072) |
| Luminance | 0.1334 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.35
Blueviolet
#8A2BE2
ΔE00 4.72
Purply
#983FB2
ΔE00 5.15
Violet (survey)
#9A0EEA
ΔE00 6.29
Darkviolet
#9400D3
ΔE00 6.40
Royal Purple
#7851A9
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8942C7 #80C742
analogous
#4742C7 #8942C7 #C742C3
triadic
#8942C7 #C78942 #42C789
tetradic
#8942C7 #C74742 #80C742 #42C3C7
square
#8942C7 #C74742 #80C742 #42C3C7
split-complementary
#8942C7 #C3C742 #42C747
monochromatic
#4A216E #6A2F9D #8942C7 #A671D5 #C4A0E3
Accessibility & contrast
On white
5.73
#8942C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.67
#8942C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8942C7
5.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8942C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8942C7 | 1.00 | 5.73 | 3.67 | 5.73 |
| #FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#1766C4
Tritanopia (blue-blind)
#7E5F7F
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8942c7; /* rgb */ color: rgb(137, 66, 199); /* oklch */ color: oklch(53.5% 0.199 305.0);
Tailwind
colors: {
custom: {
50: '#b07bd9',
500: '#8942c7',
950: '#000000',
},
}SCSS
$custom: #8942c7; $custom-light: #b07bd9; $custom-dark: #000000;
JSON
{
"hex": "#8942c7",
"rgb": {
"r": 137,
"g": 66,
"b": 199
},
"hsl": {
"h": 272.03,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.53468,
"c": 0.19925,
"h": 305
},
"luminance": 0.13338
}Semantic roles & 50–950 ramp
primary
#8942C7
secondary
#B0D095
accent
#DE4A8F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83