#786FED#786FED
#786FED is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.3% C 0.184 H 282.8°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #786FED |
|---|---|
| RGB | rgb(120, 111, 237) |
| HSL | hsl(244, 78%, 68%) |
| HSV | hsv(244, 53%, 93%) |
| CMYK | cmyk(49.4%, 53.2%, 0%, 7.1%) |
| CIE-LAB | lab(53.47, 36.07, -62.74) |
| CIE-LCH | lch(53.47, 72.37, 299.89°) |
| OKLab | oklab(61.34% 0.0406 -0.1791) |
| OKLCH | oklch(61.34% 0.184 282.8) |
| XYZ | xyz(28.7116, 21.4749, 82.7365) |
| Luminance | 0.2148 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.24
Cornflower
#6A79F7
ΔE00 4.57
Mediumpurple
#9370DB
ΔE00 6.34
Periwinkle (survey)
#8E82FE
ΔE00 6.64
Dark Periwinkle
#665FD1
ΔE00 7.11
Lavender Blue
#8B88F8
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FED #E4ED6F
analogous
#6FA5ED #786FED #B76FED
triadic
#786FED #ED786F #6FED78
tetradic
#786FED #ED6FA5 #E4ED6F #6FEDB7
square
#786FED #ED6FA5 #E4ED6F #6FEDB7
split-complementary
#786FED #EDB76F #A5ED6F
monochromatic
#2619C9 #4539E6 #786FED #ABA5F4 #DEDCFB
Accessibility & contrast
On white
3.97
#786FED on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.30
#786FED on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FED
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FED | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FED | 1.00 | 3.97 | 5.30 | 5.30 |
| #FFFFFF | 3.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2984F1
Deuteranopia (green-blind)
#1E7BEA
Tritanopia (blue-blind)
#4C8BA3
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #786fed; /* rgb */ color: rgb(120, 111, 237); /* oklch */ color: oklch(61.3% 0.184 282.8);
Tailwind
colors: {
custom: {
50: '#a698f4',
500: '#786fed',
950: '#000000',
},
}SCSS
$custom: #786fed; $custom-light: #a698f4; $custom-dark: #000000;
JSON
{
"hex": "#786fed",
"rgb": {
"r": 120,
"g": 111,
"b": 237
},
"hsl": {
"h": 244.286,
"s": 77.778,
"l": 68.235
},
"oklch": {
"l": 0.61339,
"c": 0.18361,
"h": 282.8
},
"luminance": 0.21476
}Semantic roles & 50–950 ramp
primary
#786FED
secondary
#ECEFC9
accent
#DA0BCB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85