#7856F2#7856F2
#7856F2 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.7% C 0.222 H 287.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #7856F2 |
|---|---|
| RGB | rgb(120, 86, 242) |
| HSL | hsl(253, 86%, 64%) |
| HSV | hsv(253, 64%, 95%) |
| CMYK | cmyk(50.4%, 64.5%, 0%, 5.1%) |
| CIE-LAB | lab(48.33, 51.77, -73.85) |
| CIE-LCH | lch(48.33, 90.19, 305.03°) |
| OKLab | oklab(57.68% 0.066 -0.2118) |
| OKLCH | oklch(57.68% 0.222 287.3) |
| XYZ | xyz(27.0958, 17.0582, 85.8520) |
| Luminance | 0.1706 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.19
Mediumslateblue
#7B68EE
ΔE00 4.96
Light Indigo
#6D5ACF
ΔE00 5.15
Slate Blue
#6A5ACD
ΔE00 5.62
Dark Periwinkle
#665FD1
ΔE00 5.91
Purpleish Blue
#6140EF
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7856F2 #D0F256
analogous
#5682F2 #7856F2 #C656F2
triadic
#7856F2 #F27856 #56F278
tetradic
#7856F2 #F25682 #D0F256 #56F2C6
square
#7856F2 #F25682 #D0F256 #56F2C6
split-complementary
#7856F2 #F2C656 #82F256
monochromatic
#350FBF #4B1DEE #7856F2 #A58FF6 #D3C8FB
Accessibility & contrast
On white
4.76
#7856F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.41
#7856F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7856F2
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7856F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7856F2 | 1.00 | 4.76 | 4.41 | 4.76 |
| #FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#4B7C9D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7856f2; /* rgb */ color: rgb(120, 86, 242); /* oklch */ color: oklch(57.7% 0.222 287.3);
Tailwind
colors: {
custom: {
50: '#a988f7',
500: '#7856f2',
950: '#000000',
},
}SCSS
$custom: #7856f2; $custom-light: #a988f7; $custom-dark: #000000;
JSON
{
"hex": "#7856f2",
"rgb": {
"r": 120,
"g": 86,
"b": 242
},
"hsl": {
"h": 253.077,
"s": 85.714,
"l": 64.314
},
"oklch": {
"l": 0.57678,
"c": 0.22187,
"h": 287.3
},
"luminance": 0.17059
}Semantic roles & 50–950 ramp
primary
#7856F2
secondary
#E1EDB7
accent
#E203B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85