#8E2FC4#8E2FC4
#8E2FC4 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.8% C 0.220 H 309.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2FC4 |
|---|---|
| RGB | rgb(142, 47, 196) |
| HSL | hsl(278, 61%, 48%) |
| HSV | hsv(278, 76%, 77%) |
| CMYK | cmyk(27.6%, 76%, 0%, 23.1%) |
| CIE-LAB | lab(40.85, 62.58, -59.63) |
| CIE-LCH | lch(40.85, 86.44, 316.38°) |
| OKLab | oklab(51.82% 0.1404 -0.1691) |
| OKLCH | oklch(51.82% 0.22 309.7) |
| XYZ | xyz(22.1337, 11.7698, 53.3197) |
| Luminance | 0.1177 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.42
Darkviolet
#9400D3
ΔE00 3.50
Blueviolet
#8A2BE2
ΔE00 4.26
Violet (survey)
#9A0EEA
ΔE00 5.05
Purply
#983FB2
ΔE00 5.07
Vibrant Purple
#AD03DE
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2FC4 #65C42F
analogous
#432FC4 #8E2FC4 #C42FAF
triadic
#8E2FC4 #C48E2F #2FC48E
tetradic
#8E2FC4 #C4432F #65C42F #2FAFC4
square
#8E2FC4 #C4432F #65C42F #2FAFC4
split-complementary
#8E2FC4 #AFC42F #2FC443
monochromatic
#461761 #6A2393 #8E2FC4 #A959D7 #C38AE3
Accessibility & contrast
On white
6.26
#8E2FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#8E2FC4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E2FC4
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2FC4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2FC4 | 1.00 | 6.26 | 3.35 | 6.26 |
| #FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0062C1
Tritanopia (blue-blind)
#865378
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8e2fc4; /* rgb */ color: rgb(142, 47, 196); /* oklch */ color: oklch(51.8% 0.220 309.7);
Tailwind
colors: {
custom: {
50: '#b472d7',
500: '#8e2fc4',
950: '#000000',
},
}SCSS
$custom: #8e2fc4; $custom-light: #b472d7; $custom-dark: #000000;
JSON
{
"hex": "#8e2fc4",
"rgb": {
"r": 142,
"g": 47,
"b": 196
},
"hsl": {
"h": 278.255,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.51821,
"c": 0.21979,
"h": 309.7
},
"luminance": 0.11769
}Semantic roles & 50–950 ramp
primary
#8E2FC4
secondary
#9DCD82
accent
#E4437E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83