#786FE1#786FE1
#786FE1 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.6% C 0.168 H 283.8°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #786FE1 |
|---|---|
| RGB | rgb(120, 111, 225) |
| HSL | hsl(245, 66%, 66%) |
| HSV | hsv(245, 51%, 88%) |
| CMYK | cmyk(46.7%, 50.7%, 0%, 11.8%) |
| CIE-LAB | lab(52.73, 32.52, -57.20) |
| CIE-LCH | lch(52.73, 65.79, 299.62°) |
| OKLab | oklab(60.55% 0.0399 -0.1628) |
| OKLCH | oklch(60.55% 0.168 283.8) |
| XYZ | xyz(27.0167, 20.7969, 73.8102) |
| Luminance | 0.2080 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.83
Cornflower
#6A79F7
ΔE00 5.39
Mediumpurple
#9370DB
ΔE00 5.77
Dark Periwinkle
#665FD1
ΔE00 6.27
Light Indigo
#6D5ACF
ΔE00 7.33
Periwinkle (survey)
#8E82FE
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FE1 #D8E16F
analogous
#6F9FE1 #786FE1 #B16FE1
triadic
#786FE1 #E1786F #6FE178
tetradic
#786FE1 #E16F9F #D8E16F #6FE1B1
square
#786FE1 #E16F9F #D8E16F #6FE1B1
split-complementary
#786FE1 #E1B16F #9FE16F
monochromatic
#3025B1 #493CD6 #786FE1 #A7A2EC #D7D4F6
Accessibility & contrast
On white
4.07
#786FE1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.16
#786FE1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FE1
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FE1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FE1 | 1.00 | 4.07 | 5.16 | 5.16 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A81E5
Deuteranopia (green-blind)
#347ADE
Tritanopia (blue-blind)
#54889E
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786fe1; /* rgb */ color: rgb(120, 111, 225); /* oklch */ color: oklch(60.6% 0.168 283.8);
Tailwind
colors: {
custom: {
50: '#a598eb',
500: '#786fe1',
950: '#000000',
},
}SCSS
$custom: #786fe1; $custom-light: #a598eb; $custom-dark: #000000;
JSON
{
"hex": "#786fe1",
"rgb": {
"r": 120,
"g": 111,
"b": 225
},
"hsl": {
"h": 244.737,
"s": 65.517,
"l": 65.882
},
"oklch": {
"l": 0.6055,
"c": 0.16759,
"h": 283.8
},
"luminance": 0.20798
}Semantic roles & 50–950 ramp
primary
#786FE1
secondary
#E6E9C3
accent
#CD18BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84