#786FE2#786FE2
#786FE2 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.6% C 0.169 H 283.7°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #786FE2 |
|---|---|
| RGB | rgb(120, 111, 226) |
| HSL | hsl(245, 66%, 66%) |
| HSV | hsv(245, 51%, 89%) |
| CMYK | cmyk(46.9%, 50.9%, 0%, 11.4%) |
| CIE-LAB | lab(52.79, 32.81, -57.66) |
| CIE-LCH | lch(52.79, 66.34, 299.64°) |
| OKLab | oklab(60.61% 0.04 -0.1641) |
| OKLCH | oklch(60.61% 0.169 283.7) |
| XYZ | xyz(27.1536, 20.8516, 74.5308) |
| Luminance | 0.2085 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.75
Cornflower
#6A79F7
ΔE00 5.30
Mediumpurple
#9370DB
ΔE00 5.81
Dark Periwinkle
#665FD1
ΔE00 6.33
Periwinkle (survey)
#8E82FE
ΔE00 7.31
Light Indigo
#6D5ACF
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FE2 #D9E26F
analogous
#6F9FE2 #786FE2 #B16FE2
triadic
#786FE2 #E2786F #6FE278
tetradic
#786FE2 #E26F9F #D9E26F #6FE2B1
square
#786FE2 #E26F9F #D9E26F #6FE2B1
split-complementary
#786FE2 #E2B16F #9FE26F
monochromatic
#2F24B3 #483CD8 #786FE2 #A8A2EC #D8D5F7
Accessibility & contrast
On white
4.06
#786FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#786FE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FE2
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FE2 | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3882E6
Deuteranopia (green-blind)
#327ADF
Tritanopia (blue-blind)
#54889E
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786fe2; /* rgb */ color: rgb(120, 111, 226); /* oklch */ color: oklch(60.6% 0.169 283.7);
Tailwind
colors: {
custom: {
50: '#a598ec',
500: '#786fe2',
950: '#000000',
},
}SCSS
$custom: #786fe2; $custom-light: #a598ec; $custom-dark: #000000;
JSON
{
"hex": "#786fe2",
"rgb": {
"r": 120,
"g": 111,
"b": 226
},
"hsl": {
"h": 244.696,
"s": 66.474,
"l": 66.078
},
"oklch": {
"l": 0.60615,
"c": 0.16894,
"h": 283.7
},
"luminance": 0.20853
}Semantic roles & 50–950 ramp
primary
#786FE2
secondary
#E6E9C4
accent
#CE17C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84