#7862BF#7862BF
#7862BF is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.1% C 0.140 H 292.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #7862BF |
|---|---|
| RGB | rgb(120, 98, 191) |
| HSL | hsl(254, 42%, 57%) |
| HSV | hsv(254, 49%, 75%) |
| CMYK | cmyk(37.2%, 48.7%, 0%, 25.1%) |
| CIE-LAB | lab(47.61, 30.54, -45.98) |
| CIE-LCH | lch(47.61, 55.20, 303.59°) |
| OKLab | oklab(56.08% 0.0529 -0.1299) |
| OKLCH | oklch(56.08% 0.14 292.2) |
| XYZ | xyz(21.5149, 16.4895, 51.3294) |
| Luminance | 0.1649 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 4.35
Slate Blue
#6A5ACD
ΔE00 4.51
Dark Periwinkle
#665FD1
ΔE00 4.98
Iris
#6258C4
ΔE00 5.37
Deep Lavender
#8D5EB7
ΔE00 5.62
Royal Purple
#7851A9
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7862BF #A9BF62
analogous
#627BBF #7862BF #A762BF
triadic
#7862BF #BF7862 #62BF78
tetradic
#7862BF #BF627B #A9BF62 #62BFA7
square
#7862BF #BF627B #A9BF62 #62BFA7
split-complementary
#7862BF #BFA762 #7BBF62
monochromatic
#413076 #5942A2 #7862BF #9D8DD1 #C3B9E2
Accessibility & contrast
On white
4.89
#7862BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#7862BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7862BF
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7862BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7862BF | 1.00 | 4.89 | 4.30 | 4.89 |
| #FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F72C2
Deuteranopia (green-blind)
#436FBD
Tritanopia (blue-blind)
#667487
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7862bf; /* rgb */ color: rgb(120, 98, 191); /* oklch */ color: oklch(56.1% 0.140 292.2);
Tailwind
colors: {
custom: {
50: '#a28fd3',
500: '#7862bf',
950: '#000000',
},
}SCSS
$custom: #7862bf; $custom-light: #a28fd3; $custom-dark: #000000;
JSON
{
"hex": "#7862bf",
"rgb": {
"r": 120,
"g": 98,
"b": 191
},
"hsl": {
"h": 254.194,
"s": 42.081,
"l": 56.667
},
"oklch": {
"l": 0.56075,
"c": 0.14029,
"h": 292.2
},
"luminance": 0.1649
}Semantic roles & 50–950 ramp
primary
#7862BF
secondary
#C8D1AB
accent
#D256B5
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83