#7856C8#7856C8
#7856C8 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.6% C 0.170 H 293.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7856C8 |
|---|---|
| RGB | rgb(120, 86, 200) |
| HSL | hsl(258, 51%, 56%) |
| HSV | hsv(258, 57%, 78%) |
| CMYK | cmyk(40%, 57%, 0%, 21.6%) |
| CIE-LAB | lab(45.38, 40.05, -54.75) |
| CIE-LCH | lch(45.38, 67.83, 306.18°) |
| OKLab | oklab(54.6% 0.0685 -0.1557) |
| OKLCH | oklch(54.6% 0.17 293.8) |
| XYZ | xyz(21.4961, 14.8183, 56.3600) |
| Luminance | 0.1482 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.87
Slate Blue
#6A5ACD
ΔE00 3.26
Iris
#6258C4
ΔE00 4.39
Purpley
#8756E4
ΔE00 4.73
Dark Periwinkle
#665FD1
ΔE00 4.99
Royal Purple
#7851A9
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7856C8 #A6C856
analogous
#566DC8 #7856C8 #B156C8
triadic
#7856C8 #C87856 #56C878
tetradic
#7856C8 #C8566D #A6C856 #56C8B1
square
#7856C8 #C8566D #A6C856 #56C8B1
split-complementary
#7856C8 #C8B156 #6DC856
monochromatic
#41287B #5937AA #7856C8 #9D84D7 #C2B2E6
Accessibility & contrast
On white
5.30
#7856C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#7856C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7856C8
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7856C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7856C8 | 1.00 | 5.30 | 3.96 | 5.30 |
| #FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#166DCC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#636E87
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7856c8; /* rgb */ color: rgb(120, 86, 200); /* oklch */ color: oklch(54.6% 0.170 293.8);
Tailwind
colors: {
custom: {
50: '#a487d9',
500: '#7856c8',
950: '#000000',
},
}SCSS
$custom: #7856c8; $custom-light: #a487d9; $custom-dark: #000000;
JSON
{
"hex": "#7856c8",
"rgb": {
"r": 120,
"g": 86,
"b": 200
},
"hsl": {
"h": 257.895,
"s": 50.893,
"l": 56.078
},
"oklch": {
"l": 0.54597,
"c": 0.17008,
"h": 293.8
},
"luminance": 0.14819
}Semantic roles & 50–950 ramp
primary
#7856C8
secondary
#C6D4A5
accent
#DA4DB0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83