#8151CF#8151CF
#8151CF is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.2% C 0.187 H 297.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #8151CF |
|---|---|
| RGB | rgb(129, 81, 207) |
| HSL | hsl(263, 57%, 56%) |
| HSV | hsv(263, 61%, 81%) |
| CMYK | cmyk(37.7%, 60.9%, 0%, 18.8%) |
| CIE-LAB | lab(45.71, 46.73, -58.20) |
| CIE-LCH | lch(45.71, 74.64, 308.76°) |
| OKLab | oklab(55.2% 0.0861 -0.1655) |
| OKLCH | oklch(55.2% 0.187 297.5) |
| XYZ | xyz(23.2553, 15.0566, 60.7004) |
| Luminance | 0.1506 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.59
Light Indigo
#6D5ACF
ΔE00 4.64
Slate Blue
#6A5ACD
ΔE00 5.13
Royal Purple
#7851A9
ΔE00 6.29
Bluish Purple
#703BE7
ΔE00 6.37
Iris
#6258C4
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8151CF #9FCF51
analogous
#5160CF #8151CF #C051CF
triadic
#8151CF #CF8151 #51CF81
tetradic
#8151CF #CF5160 #9FCF51 #51CFC0
square
#8151CF #CF5160 #9FCF51 #51CFC0
split-complementary
#8151CF #CFC051 #60CF51
monochromatic
#482482 #6231B2 #8151CF #A481DC #C6B1E9
Accessibility & contrast
On white
5.24
#8151CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#8151CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8151CF
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8151CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8151CF | 1.00 | 5.24 | 4.01 | 5.24 |
| #FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#186BCC
Tritanopia (blue-blind)
#6F6D88
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8151cf; /* rgb */ color: rgb(129, 81, 207); /* oklch */ color: oklch(55.2% 0.187 297.5);
Tailwind
colors: {
custom: {
50: '#ab84de',
500: '#8151cf',
950: '#000000',
},
}SCSS
$custom: #8151cf; $custom-light: #ab84de; $custom-dark: #000000;
JSON
{
"hex": "#8151cf",
"rgb": {
"r": 129,
"g": 81,
"b": 207
},
"hsl": {
"h": 262.857,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.55198,
"c": 0.18659,
"h": 297.5
},
"luminance": 0.15057
}Semantic roles & 50–950 ramp
primary
#8151CF
secondary
#C4D8A4
accent
#E048A6
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100B15
muted
#7F7C83