#7862DC#7862DC
#7862DC is a mid, vivid violet. Relative luminance 0.179; OKLCH L 57.9% C 0.179 H 287.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7862DC |
|---|---|
| RGB | rgb(120, 98, 220) |
| HSL | hsl(251, 64%, 62%) |
| HSV | hsv(251, 55%, 86%) |
| CMYK | cmyk(45.5%, 55.5%, 0%, 13.7%) |
| CIE-LAB | lab(49.37, 38.72, -59.77) |
| CIE-LCH | lch(49.37, 71.22, 302.93°) |
| OKLab | oklab(57.95% 0.0546 -0.1704) |
| OKLCH | oklch(57.95% 0.179 287.8) |
| XYZ | xyz(25.0280, 17.8947, 69.8316) |
| Luminance | 0.1790 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.27
Light Indigo
#6D5ACF
ΔE00 3.61
Dark Periwinkle
#665FD1
ΔE00 3.72
Slate Blue
#6A5ACD
ΔE00 4.05
Purpley
#8756E4
ΔE00 4.28
Iris
#6258C4
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7862DC #C6DC62
analogous
#6289DC #7862DC #B562DC
triadic
#7862DC #DC7862 #62DC78
tetradic
#7862DC #DC6289 #C6DC62 #62DCB5
square
#7862DC #DC6289 #C6DC62 #62DCB5
split-complementary
#7862DC #DCB562 #89DC62
monochromatic
#3A24A0 #4D30D1 #7862DC #A394E7 #CEC6F2
Accessibility & contrast
On white
4.59
#7862DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.58
#7862DC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7862DC
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7862DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7862DC | 1.00 | 4.59 | 4.58 | 4.59 |
| #FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A78E0
Deuteranopia (green-blind)
#1B72D9
Tritanopia (blue-blind)
#587D96
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7862dc; /* rgb */ color: rgb(120, 98, 220); /* oklch */ color: oklch(57.9% 0.179 287.8);
Tailwind
colors: {
custom: {
50: '#a58fe8',
500: '#7862dc',
950: '#000000',
},
}SCSS
$custom: #7862dc; $custom-light: #a58fe8; $custom-dark: #000000;
JSON
{
"hex": "#7862dc",
"rgb": {
"r": 120,
"g": 98,
"b": 220
},
"hsl": {
"h": 250.82,
"s": 63.542,
"l": 62.353
},
"oklch": {
"l": 0.57949,
"c": 0.17894,
"h": 287.8
},
"luminance": 0.17896
}Semantic roles & 50–950 ramp
primary
#7862DC
secondary
#DBE3B7
accent
#CB1AAB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84