#8152E2#8152E2
#8152E2 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.7% C 0.208 H 293.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #8152E2 |
|---|---|
| RGB | rgb(129, 82, 226) |
| HSL | hsl(260, 71%, 60%) |
| HSV | hsv(260, 64%, 89%) |
| CMYK | cmyk(42.9%, 63.7%, 0%, 11.4%) |
| CIE-LAB | lab(47.23, 51.19, -66.60) |
| CIE-LCH | lch(47.23, 84.00, 307.55°) |
| OKLab | oklab(56.71% 0.0836 -0.1902) |
| OKLCH | oklch(56.71% 0.208 293.7) |
| XYZ | xyz(25.7943, 16.1920, 73.7031) |
| Luminance | 0.1619 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.59
Light Indigo
#6D5ACF
ΔE00 4.77
Slate Blue
#6A5ACD
ΔE00 5.34
Bluish Purple
#703BE7
ΔE00 5.94
Dark Periwinkle
#665FD1
ΔE00 6.46
Purpleish Blue
#6140EF
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8152E2 #B3E252
analogous
#526BE2 #8152E2 #C952E2
triadic
#8152E2 #E28152 #52E281
tetradic
#8152E2 #E2526B #B3E252 #52E2C9
square
#8152E2 #E2526B #B3E252 #52E2C9
split-complementary
#8152E2 #E2C952 #6BE252
monochromatic
#461B9F #5D23D3 #8152E2 #A786EB #CDBBF4
Accessibility & contrast
On white
4.95
#8152E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#8152E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8152E2
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8152E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8152E2 | 1.00 | 4.95 | 4.24 | 4.95 |
| #FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072E6
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#667493
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8152e2; /* rgb */ color: rgb(129, 82, 226); /* oklch */ color: oklch(56.7% 0.208 293.7);
Tailwind
colors: {
custom: {
50: '#ac85ec',
500: '#8152e2',
950: '#000000',
},
}SCSS
$custom: #8152e2; $custom-light: #ac85ec; $custom-dark: #000000;
JSON
{
"hex": "#8152e2",
"rgb": {
"r": 129,
"g": 82,
"b": 226
},
"hsl": {
"h": 259.583,
"s": 71.287,
"l": 60.392
},
"oklch": {
"l": 0.56713,
"c": 0.20778,
"h": 293.7
},
"luminance": 0.16193
}Semantic roles & 50–950 ramp
primary
#8152E2
secondary
#D1E3AC
accent
#D31294
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84