#7856BF#7856BF
#7856BF is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.0% C 0.159 H 295.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #7856BF |
|---|---|
| RGB | rgb(120, 86, 191) |
| HSL | hsl(259, 45%, 54%) |
| HSV | hsv(259, 55%, 75%) |
| CMYK | cmyk(37.2%, 55%, 0%, 25.1%) |
| CIE-LAB | lab(44.82, 37.60, -50.45) |
| CIE-LCH | lch(44.82, 62.92, 306.69°) |
| OKLab | oklab(53.99% 0.0684 -0.143) |
| OKLCH | oklch(53.99% 0.159 295.5) |
| XYZ | xyz(20.4751, 14.4099, 50.9827) |
| Luminance | 0.1441 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.87
Slate Blue
#6A5ACD
ΔE00 4.10
Royal Purple
#7851A9
ΔE00 4.16
Iris
#6258C4
ΔE00 4.74
Deep Lavender
#8D5EB7
ΔE00 5.79
Dark Periwinkle
#665FD1
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7856BF #9DBF56
analogous
#5669BF #7856BF #AD56BF
triadic
#7856BF #BF7856 #56BF78
tetradic
#7856BF #BF5669 #9DBF56 #56BFAD
square
#7856BF #BF5669 #9DBF56 #56BFAD
split-complementary
#7856BF #BFAD56 #69BF56
monochromatic
#412A70 #5B3B9D #7856BF #9B82D0 #BFAFE1
Accessibility & contrast
On white
5.41
#7856BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#7856BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7856BF
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7856BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7856BF | 1.00 | 5.41 | 3.88 | 5.41 |
| #FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#266BC3
Deuteranopia (green-blind)
#3169BD
Tritanopia (blue-blind)
#676C82
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7856bf; /* rgb */ color: rgb(120, 86, 191); /* oklch */ color: oklch(54.0% 0.159 295.5);
Tailwind
colors: {
custom: {
50: '#a387d3',
500: '#7856bf',
950: '#000000',
},
}SCSS
$custom: #7856bf; $custom-light: #a387d3; $custom-dark: #000000;
JSON
{
"hex": "#7856bf",
"rgb": {
"r": 120,
"g": 86,
"b": 191
},
"hsl": {
"h": 259.429,
"s": 45.064,
"l": 54.314
},
"oklch": {
"l": 0.53994,
"c": 0.15854,
"h": 295.5
},
"luminance": 0.1441
}Semantic roles & 50–950 ramp
primary
#7856BF
secondary
#C0CFA2
accent
#D553AB
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83