#786FE5#786FE5
#786FE5 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.8% C 0.173 H 283.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #786FE5 |
|---|---|
| RGB | rgb(120, 111, 229) |
| HSL | hsl(245, 69%, 67%) |
| HSV | hsv(245, 52%, 90%) |
| CMYK | cmyk(47.6%, 51.5%, 0%, 10.2%) |
| CIE-LAB | lab(52.97, 33.70, -59.06) |
| CIE-LCH | lch(52.97, 67.99, 299.71°) |
| OKLab | oklab(60.81% 0.0402 -0.1682) |
| OKLCH | oklch(60.81% 0.173 283.4) |
| XYZ | xyz(27.5688, 21.0177, 76.7177) |
| Luminance | 0.2102 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.52
Cornflower
#6A79F7
ΔE00 5.06
Mediumpurple
#9370DB
ΔE00 5.93
Dark Periwinkle
#665FD1
ΔE00 6.51
Periwinkle (survey)
#8E82FE
ΔE00 7.10
Cornflower Blue
#5170D7
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FE5 #DCE56F
analogous
#6FA1E5 #786FE5 #B36FE5
triadic
#786FE5 #E5786F #6FE578
tetradic
#786FE5 #E56FA1 #DCE56F #6FE5B3
square
#786FE5 #E56FA1 #DCE56F #6FE5B3
split-complementary
#786FE5 #E5B36F #A1E56F
monochromatic
#2D21B8 #473BDC #786FE5 #A9A3EE #D9D7F8
Accessibility & contrast
On white
4.04
#786FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.20
#786FE5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FE5
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FE5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FE5 | 1.00 | 4.04 | 5.20 | 5.20 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3582E9
Deuteranopia (green-blind)
#2E7BE2
Tritanopia (blue-blind)
#52899F
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786fe5; /* rgb */ color: rgb(120, 111, 229); /* oklch */ color: oklch(60.8% 0.173 283.4);
Tailwind
colors: {
custom: {
50: '#a598ee',
500: '#786fe5',
950: '#000000',
},
}SCSS
$custom: #786fe5; $custom-light: #a598ee; $custom-dark: #000000;
JSON
{
"hex": "#786fe5",
"rgb": {
"r": 120,
"g": 111,
"b": 229
},
"hsl": {
"h": 244.576,
"s": 69.412,
"l": 66.667
},
"oklch": {
"l": 0.6081,
"c": 0.17297,
"h": 283.4
},
"luminance": 0.21019
}Semantic roles & 50–950 ramp
primary
#786FE5
secondary
#E8EBC5
accent
#D114C3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84