#815FB5#815FB5
#815FB5 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 55.8% C 0.133 H 300.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #815FB5 |
|---|---|
| RGB | rgb(129, 95, 181) |
| HSL | hsl(264, 37%, 54%) |
| HSV | hsv(264, 48%, 71%) |
| CMYK | cmyk(28.7%, 47.5%, 0%, 29%) |
| CIE-LAB | lab(47.22, 32.08, -40.74) |
| CIE-LCH | lch(47.22, 51.86, 308.21°) |
| OKLab | oklab(55.81% 0.0671 -0.1144) |
| OKLCH | oklch(55.81% 0.133 300.4) |
| XYZ | xyz(21.4840, 16.1876, 45.6998) |
| Luminance | 0.1619 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.72
Royal Purple
#7851A9
ΔE00 4.72
Amethyst
#9B5FC0
ΔE00 5.61
Deep Lilac
#966EBD
ΔE00 6.52
Light Indigo
#6D5ACF
ΔE00 6.87
Slate Blue
#6A5ACD
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#815FB5 #93B55F
analogous
#5F68B5 #815FB5 #AC5FB5
triadic
#815FB5 #B5815F #5FB581
tetradic
#815FB5 #B55F68 #93B55F #5FB5AC
square
#815FB5 #B55F68 #93B55F #5FB5AC
split-complementary
#815FB5 #B5AC5F #68B55F
monochromatic
#473169 #634493 #815FB5 #A289C8 #C3B3DC
Accessibility & contrast
On white
4.96
#815FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#815FB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #815FB5
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##815FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##815FB5 | 1.00 | 4.96 | 4.24 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4570B8
Deuteranopia (green-blind)
#4D6FB3
Tritanopia (blue-blind)
#776F81
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #815fb5; /* rgb */ color: rgb(129, 95, 181); /* oklch */ color: oklch(55.8% 0.133 300.4);
Tailwind
colors: {
custom: {
50: '#a88dcb',
500: '#815fb5',
950: '#000000',
},
}SCSS
$custom: #815fb5; $custom-light: #a88dcb; $custom-dark: #000000;
JSON
{
"hex": "#815fb5",
"rgb": {
"r": 129,
"g": 95,
"b": 181
},
"hsl": {
"h": 263.721,
"s": 36.752,
"l": 54.118
},
"oklch": {
"l": 0.5581,
"c": 0.13262,
"h": 300.4
},
"luminance": 0.16188
}Semantic roles & 50–950 ramp
primary
#815FB5
secondary
#BCCAA6
accent
#CD5BA0
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82