#7856F1#7856F1
#7856F1 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.6% C 0.221 H 287.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #7856F1 |
|---|---|
| RGB | rgb(120, 86, 241) |
| HSL | hsl(253, 85%, 64%) |
| HSV | hsv(253, 64%, 95%) |
| CMYK | cmyk(50.2%, 64.3%, 0%, 5.5%) |
| CIE-LAB | lab(48.26, 51.49, -73.41) |
| CIE-LCH | lch(48.26, 89.67, 305.05°) |
| OKLab | oklab(57.6% 0.0661 -0.2105) |
| OKLCH | oklch(57.6% 0.221 287.4) |
| XYZ | xyz(26.9460, 16.9982, 85.0632) |
| Luminance | 0.1700 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.13
Mediumslateblue
#7B68EE
ΔE00 4.98
Light Indigo
#6D5ACF
ΔE00 5.04
Slate Blue
#6A5ACD
ΔE00 5.51
Dark Periwinkle
#665FD1
ΔE00 5.82
Purpleish Blue
#6140EF
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7856F1 #CFF156
analogous
#5682F1 #7856F1 #C556F1
triadic
#7856F1 #F17856 #56F178
tetradic
#7856F1 #F15682 #CFF156 #56F1C5
square
#7856F1 #F15682 #CFF156 #56F1C5
split-complementary
#7856F1 #F1C556 #82F156
monochromatic
#3610BD #4B1DEC #7856F1 #A58FF6 #D2C7FA
Accessibility & contrast
On white
4.77
#7856F1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.40
#7856F1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7856F1
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7856F1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7856F1 | 1.00 | 4.77 | 4.40 | 4.77 |
| #FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076F6
Deuteranopia (green-blind)
#006EEE
Tritanopia (blue-blind)
#4C7C9C
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7856f1; /* rgb */ color: rgb(120, 86, 241); /* oklch */ color: oklch(57.6% 0.221 287.4);
Tailwind
colors: {
custom: {
50: '#a888f7',
500: '#7856f1',
950: '#000000',
},
}SCSS
$custom: #7856f1; $custom-light: #a888f7; $custom-dark: #000000;
JSON
{
"hex": "#7856f1",
"rgb": {
"r": 120,
"g": 86,
"b": 241
},
"hsl": {
"h": 253.161,
"s": 84.699,
"l": 64.118
},
"oklch": {
"l": 0.576,
"c": 0.22067,
"h": 287.4
},
"luminance": 0.17
}Semantic roles & 50–950 ramp
primary
#7856F1
secondary
#E1ECB6
accent
#E104B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85