#786FD3#786FD3
#786FD3 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.148 H 285.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #786FD3 |
|---|---|
| RGB | rgb(120, 111, 211) |
| HSL | hsl(245, 53%, 63%) |
| HSV | hsv(245, 47%, 83%) |
| CMYK | cmyk(43.1%, 47.4%, 0%, 17.3%) |
| CIE-LAB | lab(51.91, 28.43, -50.59) |
| CIE-LCH | lch(51.91, 58.03, 299.34°) |
| OKLab | oklab(59.67% 0.0386 -0.1434) |
| OKLCH | oklch(59.67% 0.148 285.1) |
| XYZ | xyz(25.1846, 20.0641, 64.1612) |
| Luminance | 0.2006 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.48
Mediumpurple
#9370DB
ΔE00 5.64
Dark Periwinkle
#665FD1
ΔE00 5.89
Cornflower
#6A79F7
ΔE00 6.88
Light Indigo
#6D5ACF
ΔE00 6.89
Slate Blue
#6A5ACD
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FD3 #CAD36F
analogous
#6F98D3 #786FD3 #AA6FD3
triadic
#786FD3 #D3786F #6FD378
tetradic
#786FD3 #D36F98 #CAD36F #6FD3AA
square
#786FD3 #D36F98 #CAD36F #6FD3AA
split-complementary
#786FD3 #D3AA6F #98D36F
monochromatic
#382F99 #4C40C5 #786FD3 #A49EE1 #D0CDF0
Accessibility & contrast
On white
4.19
#786FD3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#786FD3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FD3
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FD3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FD3 | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#477FD7
Deuteranopia (green-blind)
#4479D1
Tritanopia (blue-blind)
#5C8497
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786fd3; /* rgb */ color: rgb(120, 111, 211); /* oklch */ color: oklch(59.7% 0.148 285.1);
Tailwind
colors: {
custom: {
50: '#a498e1',
500: '#786fd3',
950: '#000000',
},
}SCSS
$custom: #786fd3; $custom-light: #a498e1; $custom-dark: #000000;
JSON
{
"hex": "#786fd3",
"rgb": {
"r": 120,
"g": 111,
"b": 211
},
"hsl": {
"h": 245.4,
"s": 53.191,
"l": 63.137
},
"oklch": {
"l": 0.59673,
"c": 0.14847,
"h": 285.1
},
"luminance": 0.20065
}Semantic roles & 50–950 ramp
primary
#786FD3
secondary
#DEE1BD
accent
#C125B3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83