#786DE8#786DE8
#786DE8 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.7% C 0.180 H 283.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #786DE8 |
|---|---|
| RGB | rgb(120, 109, 232) |
| HSL | hsl(245, 73%, 67%) |
| HSV | hsv(245, 53%, 91%) |
| CMYK | cmyk(48.3%, 53%, 0%, 9%) |
| CIE-LAB | lab(52.68, 35.76, -61.20) |
| CIE-LCH | lch(52.68, 70.89, 300.30°) |
| OKLab | oklab(60.65% 0.0426 -0.1746) |
| OKLCH | oklch(60.65% 0.18 283.7) |
| XYZ | xyz(27.7755, 20.7552, 78.8709) |
| Luminance | 0.2076 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.80
Cornflower
#6A79F7
ΔE00 5.35
Mediumpurple
#9370DB
ΔE00 6.03
Dark Periwinkle
#665FD1
ΔE00 6.27
Light Indigo
#6D5ACF
ΔE00 7.23
Purpley
#8756E4
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786DE8 #DDE86D
analogous
#6DA0E8 #786DE8 #B66DE8
triadic
#786DE8 #E8786D #6DE878
tetradic
#786DE8 #E86DA0 #DDE86D #6DE8B6
square
#786DE8 #E86DA0 #DDE86D #6DE8B6
split-complementary
#786DE8 #E8B66D #A0E86D
monochromatic
#2C1EBD #4738E0 #786DE8 #A9A2F0 #DAD7F9
Accessibility & contrast
On white
4.08
#786DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#786DE8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786DE8
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786DE8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786DE8 | 1.00 | 4.08 | 5.15 | 5.15 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B82EC
Deuteranopia (green-blind)
#237AE5
Tritanopia (blue-blind)
#5088A0
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786de8; /* rgb */ color: rgb(120, 109, 232); /* oklch */ color: oklch(60.7% 0.180 283.7);
Tailwind
colors: {
custom: {
50: '#a697f0',
500: '#786de8',
950: '#000000',
},
}SCSS
$custom: #786de8; $custom-light: #a697f0; $custom-dark: #000000;
JSON
{
"hex": "#786de8",
"rgb": {
"r": 120,
"g": 109,
"b": 232
},
"hsl": {
"h": 245.366,
"s": 72.781,
"l": 66.863
},
"oklch": {
"l": 0.60654,
"c": 0.17969,
"h": 283.7
},
"luminance": 0.20757
}Semantic roles & 50–950 ramp
primary
#786DE8
secondary
#E9ECC5
accent
#D511C3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85