#8045C2#8045C2
#8045C2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.188 H 302.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #8045C2 |
|---|---|
| RGB | rgb(128, 69, 194) |
| HSL | hsl(268, 51%, 52%) |
| HSV | hsv(268, 64%, 76%) |
| CMYK | cmyk(34%, 64.4%, 0%, 23.9%) |
| CIE-LAB | lab(42.37, 49.55, -56.09) |
| CIE-LCH | lch(42.37, 74.84, 311.46°) |
| OKLab | oklab(52.47% 0.0995 -0.1593) |
| OKLCH | oklch(52.47% 0.188 302) |
| XYZ | xyz(20.7655, 12.7404, 52.3936) |
| Luminance | 0.1274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.95
Royal Purple
#7851A9
ΔE00 5.28
Blueviolet
#8A2BE2
ΔE00 5.51
Bluey Purple
#6241C7
ΔE00 5.64
Purply
#983FB2
ΔE00 6.08
Bluish Purple
#703BE7
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8045C2 #87C245
analogous
#4549C2 #8045C2 #BF45C2
triadic
#8045C2 #C28045 #45C280
tetradic
#8045C2 #C24549 #87C245 #45C2BF
square
#8045C2 #C24549 #87C245 #45C2BF
split-complementary
#8045C2 #C2BF45 #49C245
monochromatic
#44236A #623298 #8045C2 #9F73D1 #BFA1E0
Accessibility & contrast
On white
5.92
#8045C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#8045C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8045C2
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8045C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8045C2 | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#1563BF
Tritanopia (blue-blind)
#73607D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8045c2; /* rgb */ color: rgb(128, 69, 194); /* oklch */ color: oklch(52.5% 0.188 302.0);
Tailwind
colors: {
custom: {
50: '#a97cd5',
500: '#8045c2',
950: '#000000',
},
}SCSS
$custom: #8045c2; $custom-light: #a97cd5; $custom-dark: #000000;
JSON
{
"hex": "#8045c2",
"rgb": {
"r": 128,
"g": 69,
"b": 194
},
"hsl": {
"h": 268.32,
"s": 50.607,
"l": 51.569
},
"oklch": {
"l": 0.5247,
"c": 0.18781,
"h": 302
},
"luminance": 0.1274
}Semantic roles & 50–950 ramp
primary
#8045C2
secondary
#B3CD96
accent
#DA4E98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83