#8145C2#8145C2
#8145C2 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.188 H 302.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #8145C2 |
|---|---|
| RGB | rgb(129, 69, 194) |
| HSL | hsl(269, 51%, 52%) |
| HSV | hsv(269, 64%, 76%) |
| CMYK | cmyk(33.5%, 64.4%, 0%, 23.9%) |
| CIE-LAB | lab(42.49, 49.77, -55.89) |
| CIE-LCH | lch(42.49, 74.84, 311.68°) |
| OKLab | oklab(52.58% 0.1008 -0.1587) |
| OKLCH | oklch(52.58% 0.188 302.4) |
| XYZ | xyz(20.9167, 12.8184, 52.4007) |
| Luminance | 0.1282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.80
Royal Purple
#7851A9
ΔE00 5.30
Blueviolet
#8A2BE2
ΔE00 5.50
Bluey Purple
#6241C7
ΔE00 5.83
Purply
#983FB2
ΔE00 5.91
Bluish Purple
#703BE7
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8145C2 #86C245
analogous
#4548C2 #8145C2 #C045C2
triadic
#8145C2 #C28145 #45C281
tetradic
#8145C2 #C24548 #86C245 #45C2C0
square
#8145C2 #C24548 #86C245 #45C2C0
split-complementary
#8145C2 #C2C045 #48C245
monochromatic
#45236A #633298 #8145C2 #A073D1 #BFA1E0
Accessibility & contrast
On white
5.89
#8145C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#8145C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8145C2
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8145C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8145C2 | 1.00 | 5.89 | 3.56 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#1864BF
Tritanopia (blue-blind)
#74607D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8145c2; /* rgb */ color: rgb(129, 69, 194); /* oklch */ color: oklch(52.6% 0.188 302.4);
Tailwind
colors: {
custom: {
50: '#aa7cd5',
500: '#8145c2',
950: '#000000',
},
}SCSS
$custom: #8145c2; $custom-light: #aa7cd5; $custom-dark: #000000;
JSON
{
"hex": "#8145c2",
"rgb": {
"r": 129,
"g": 69,
"b": 194
},
"hsl": {
"h": 268.8,
"s": 50.607,
"l": 51.569
},
"oklch": {
"l": 0.52582,
"c": 0.18801,
"h": 302.4
},
"luminance": 0.12818
}Semantic roles & 50–950 ramp
primary
#8145C2
secondary
#B3CD96
accent
#DA4E97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83