#7862DD#7862DD
#7862DD is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.0% C 0.180 H 287.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7862DD |
|---|---|
| RGB | rgb(120, 98, 221) |
| HSL | hsl(251, 64%, 63%) |
| HSV | hsv(251, 56%, 87%) |
| CMYK | cmyk(45.7%, 55.7%, 0%, 13.3%) |
| CIE-LAB | lab(49.43, 39.01, -60.23) |
| CIE-LCH | lch(49.43, 71.76, 302.93°) |
| OKLab | oklab(58.02% 0.0546 -0.1718) |
| OKLCH | oklch(58.02% 0.18 287.6) |
| XYZ | xyz(25.1608, 17.9479, 70.5312) |
| Luminance | 0.1795 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.15
Light Indigo
#6D5ACF
ΔE00 3.69
Dark Periwinkle
#665FD1
ΔE00 3.77
Slate Blue
#6A5ACD
ΔE00 4.14
Purpley
#8756E4
ΔE00 4.25
Iris
#6258C4
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7862DD #C7DD62
analogous
#6289DD #7862DD #B662DD
triadic
#7862DD #DD7862 #62DD78
tetradic
#7862DD #DD6289 #C7DD62 #62DDB6
square
#7862DD #DD6289 #C7DD62 #62DDB6
split-complementary
#7862DD #DDB662 #89DD62
monochromatic
#3A23A2 #4D30D2 #7862DD #A394E8 #CFC7F3
Accessibility & contrast
On white
4.58
#7862DD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#7862DD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7862DD
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7862DD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7862DD | 1.00 | 4.58 | 4.59 | 4.59 |
| #FFFFFF | 4.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1878E1
Deuteranopia (green-blind)
#1872DA
Tritanopia (blue-blind)
#587D96
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7862dd; /* rgb */ color: rgb(120, 98, 221); /* oklch */ color: oklch(58.0% 0.180 287.6);
Tailwind
colors: {
custom: {
50: '#a58fe8',
500: '#7862dd',
950: '#000000',
},
}SCSS
$custom: #7862dd; $custom-light: #a58fe8; $custom-dark: #000000;
JSON
{
"hex": "#7862dd",
"rgb": {
"r": 120,
"g": 98,
"b": 221
},
"hsl": {
"h": 250.732,
"s": 64.398,
"l": 62.549
},
"oklch": {
"l": 0.58018,
"c": 0.18024,
"h": 287.6
},
"luminance": 0.17949
}Semantic roles & 50–950 ramp
primary
#7862DD
secondary
#DCE4B7
accent
#CC19AC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84