#815CD4#815CD4
#815CD4 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.2% C 0.177 H 294.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #815CD4 |
|---|---|
| RGB | rgb(129, 92, 212) |
| HSL | hsl(259, 58%, 60%) |
| HSV | hsv(259, 57%, 83%) |
| CMYK | cmyk(39.2%, 56.6%, 0%, 16.9%) |
| CIE-LAB | lab(48.35, 41.95, -56.81) |
| CIE-LCH | lch(48.35, 70.62, 306.44°) |
| OKLab | oklab(57.24% 0.073 -0.1614) |
| OKLCH | oklch(57.24% 0.177 294.3) |
| XYZ | xyz(24.7609, 17.0743, 64.2657) |
| Luminance | 0.1708 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.75
Light Indigo
#6D5ACF
ΔE00 3.88
Slate Blue
#6A5ACD
ΔE00 4.47
Dark Periwinkle
#665FD1
ΔE00 5.34
Mediumslateblue
#7B68EE
ΔE00 5.62
Iris
#6258C4
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#815CD4 #AFD45C
analogous
#5C73D4 #815CD4 #BD5CD4
triadic
#815CD4 #D4815C #5CD481
tetradic
#815CD4 #D45C73 #AFD45C #5CD4BD
square
#815CD4 #D45C73 #AFD45C #5CD4BD
split-complementary
#815CD4 #D4BD5C #73D45C
monochromatic
#472690 #5E33C0 #815CD4 #A68CE1 #CCBDEE
Accessibility & contrast
On white
4.76
#815CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.42
#815CD4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #815CD4
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##815CD4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##815CD4 | 1.00 | 4.76 | 4.42 | 4.76 |
| #FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B74D8
Deuteranopia (green-blind)
#2971D1
Tritanopia (blue-blind)
#6C768F
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #815cd4; /* rgb */ color: rgb(129, 92, 212); /* oklch */ color: oklch(57.2% 0.177 294.3);
Tailwind
colors: {
custom: {
50: '#aa8be2',
500: '#815cd4',
950: '#000000',
},
}SCSS
$custom: #815cd4; $custom-light: #aa8be2; $custom-dark: #000000;
JSON
{
"hex": "#815cd4",
"rgb": {
"r": 129,
"g": 92,
"b": 212
},
"hsl": {
"h": 258.5,
"s": 58.252,
"l": 59.608
},
"oklch": {
"l": 0.57236,
"c": 0.17719,
"h": 294.3
},
"luminance": 0.17075
}Semantic roles & 50–950 ramp
primary
#815CD4
secondary
#CFDDAF
accent
#E146B2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83