#7862DF#7862DF
#7862DF is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.2% C 0.183 H 287.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).
Color values
| HEX | #7862DF |
|---|---|
| RGB | rgb(120, 98, 223) |
| HSL | hsl(251, 66%, 63%) |
| HSV | hsv(251, 56%, 87%) |
| CMYK | cmyk(46.2%, 56.1%, 0%, 12.5%) |
| CIE-LAB | lab(49.56, 39.58, -61.16) |
| CIE-LCH | lch(49.56, 72.85, 302.91°) |
| OKLab | oklab(58.16% 0.0546 -0.1745) |
| OKLCH | oklch(58.16% 0.183 287.4) |
| XYZ | xyz(25.4288, 18.0551, 71.9429) |
| Luminance | 0.1806 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.92
Light Indigo
#6D5ACF
ΔE00 3.87
Dark Periwinkle
#665FD1
ΔE00 3.90
Purpley
#8756E4
ΔE00 4.22
Slate Blue
#6A5ACD
ΔE00 4.31
Iris
#6258C4
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7862DF #C9DF62
analogous
#628ADF #7862DF #B662DF
triadic
#7862DF #DF7862 #62DF78
tetradic
#7862DF #DF628A #C9DF62 #62DFB6
square
#7862DF #DF628A #C9DF62 #62DFB6
split-complementary
#7862DF #DFB662 #8ADF62
monochromatic
#3922A5 #4C2FD5 #7862DF #A495E9 #CFC8F4
Accessibility & contrast
On white
4.55
#7862DF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.61
#7862DF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7862DF
4.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7862DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7862DF | 1.00 | 4.55 | 4.61 | 4.61 |
| #FFFFFF | 4.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1279E3
Deuteranopia (green-blind)
#1272DC
Tritanopia (blue-blind)
#577E97
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7862df; /* rgb */ color: rgb(120, 98, 223); /* oklch */ color: oklch(58.2% 0.183 287.4);
Tailwind
colors: {
custom: {
50: '#a58fea',
500: '#7862df',
950: '#000000',
},
}SCSS
$custom: #7862df; $custom-light: #a58fea; $custom-dark: #000000;
JSON
{
"hex": "#7862df",
"rgb": {
"r": 120,
"g": 98,
"b": 223
},
"hsl": {
"h": 250.56,
"s": 66.138,
"l": 62.941
},
"oklch": {
"l": 0.58156,
"c": 0.18283,
"h": 287.4
},
"luminance": 0.18056
}Semantic roles & 50–950 ramp
primary
#7862DF
secondary
#DDE5B8
accent
#CE17AE
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84