#8047C2#8047C2
#8047C2 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.7% C 0.185 H 301.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #8047C2 |
|---|---|
| RGB | rgb(128, 71, 194) |
| HSL | hsl(268, 50%, 52%) |
| HSV | hsv(268, 63%, 76%) |
| CMYK | cmyk(34%, 63.4%, 0%, 23.9%) |
| CIE-LAB | lab(42.75, 48.52, -55.47) |
| CIE-LCH | lch(42.75, 73.70, 311.17°) |
| OKLab | oklab(52.75% 0.0972 -0.1575) |
| OKLCH | oklch(52.75% 0.185 301.7) |
| XYZ | xyz(20.8906, 12.9906, 52.4353) |
| Luminance | 0.1299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.03
Darkorchid
#9932CC
ΔE00 5.19
Bluey Purple
#6241C7
ΔE00 5.77
Blueviolet
#8A2BE2
ΔE00 5.80
Purply
#983FB2
ΔE00 6.15
Bluish Purple
#703BE7
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8047C2 #89C247
analogous
#474CC2 #8047C2 #BE47C2
triadic
#8047C2 #C28047 #47C280
tetradic
#8047C2 #C2474C #89C247 #47C2BE
square
#8047C2 #C2474C #89C247 #47C2BE
split-complementary
#8047C2 #C2BE47 #4CC247
monochromatic
#45246B #623399 #8047C2 #A075D1 #BFA3E0
Accessibility & contrast
On white
5.84
#8047C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#8047C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8047C2
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8047C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8047C2 | 1.00 | 5.84 | 3.60 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#1A64BF
Tritanopia (blue-blind)
#72627E
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8047c2; /* rgb */ color: rgb(128, 71, 194); /* oklch */ color: oklch(52.7% 0.185 301.7);
Tailwind
colors: {
custom: {
50: '#a97dd5',
500: '#8047c2',
950: '#000000',
},
}SCSS
$custom: #8047c2; $custom-light: #a97dd5; $custom-dark: #000000;
JSON
{
"hex": "#8047c2",
"rgb": {
"r": 128,
"g": 71,
"b": 194
},
"hsl": {
"h": 267.805,
"s": 50.204,
"l": 51.961
},
"oklch": {
"l": 0.52745,
"c": 0.18508,
"h": 301.7
},
"luminance": 0.12991
}Semantic roles & 50–950 ramp
primary
#8047C2
secondary
#B4CD97
accent
#DA4E99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83