#7862CB#7862CB
#7862CB is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.8% C 0.157 H 290.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #7862CB |
|---|---|
| RGB | rgb(120, 98, 203) |
| HSL | hsl(253, 50%, 59%) |
| HSV | hsv(253, 52%, 80%) |
| CMYK | cmyk(40.9%, 51.7%, 0%, 20.4%) |
| CIE-LAB | lab(48.31, 33.88, -51.78) |
| CIE-LCH | lch(48.31, 61.88, 303.20°) |
| OKLab | oklab(56.82% 0.0539 -0.1469) |
| OKLCH | oklch(56.82% 0.157 290.2) |
| XYZ | xyz(22.8899, 17.0395, 58.5713) |
| Luminance | 0.1704 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.24
Slate Blue
#6A5ACD
ΔE00 3.56
Dark Periwinkle
#665FD1
ΔE00 3.76
Iris
#6258C4
ΔE00 5.05
Purpley
#8756E4
ΔE00 5.39
Mediumslateblue
#7B68EE
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7862CB #B5CB62
analogous
#6281CB #7862CB #AC62CB
triadic
#7862CB #CB7862 #62CB78
tetradic
#7862CB #CB6281 #B5CB62 #62CBAC
square
#7862CB #CB6281 #B5CB62 #62CBAC
split-complementary
#7862CB #CBAC62 #81CB62
monochromatic
#3F2C86 #553CB4 #7862CB #A090DA #C7BEE9
Accessibility & contrast
On white
4.76
#7862CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.41
#7862CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7862CB
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7862CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7862CB | 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)
#3475CF
Deuteranopia (green-blind)
#3770C9
Tritanopia (blue-blind)
#61788D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7862cb; /* rgb */ color: rgb(120, 98, 203); /* oklch */ color: oklch(56.8% 0.157 290.2);
Tailwind
colors: {
custom: {
50: '#a38fdb',
500: '#7862cb',
950: '#000000',
},
}SCSS
$custom: #7862cb; $custom-light: #a38fdb; $custom-dark: #000000;
JSON
{
"hex": "#7862cb",
"rgb": {
"r": 120,
"g": 98,
"b": 203
},
"hsl": {
"h": 252.571,
"s": 50.239,
"l": 59.02
},
"oklch": {
"l": 0.56824,
"c": 0.15651,
"h": 290.2
},
"luminance": 0.1704
}Semantic roles & 50–950 ramp
primary
#7862CB
secondary
#D0D9B0
accent
#DA4EBC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83