#786FD4#786FD4
#786FD4 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.150 H 285.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #786FD4 |
|---|---|
| RGB | rgb(120, 111, 212) |
| HSL | hsl(245, 54%, 63%) |
| HSV | hsv(245, 48%, 83%) |
| CMYK | cmyk(43.4%, 47.6%, 0%, 16.9%) |
| CIE-LAB | lab(51.97, 28.72, -51.07) |
| CIE-LCH | lch(51.97, 58.59, 299.35°) |
| OKLab | oklab(59.73% 0.0387 -0.1448) |
| OKLCH | oklch(59.73% 0.15 285) |
| XYZ | xyz(25.3104, 20.1144, 64.8234) |
| Luminance | 0.2011 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.34
Mediumpurple
#9370DB
ΔE00 5.62
Dark Periwinkle
#665FD1
ΔE00 5.89
Cornflower
#6A79F7
ΔE00 6.75
Light Indigo
#6D5ACF
ΔE00 6.89
Slate Blue
#6A5ACD
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FD4 #CBD46F
analogous
#6F98D4 #786FD4 #AB6FD4
triadic
#786FD4 #D4786F #6FD478
tetradic
#786FD4 #D46F98 #CBD46F #6FD4AB
square
#786FD4 #D46F98 #CBD46F #6FD4AB
split-complementary
#786FD4 #D4AB6F #98D46F
monochromatic
#382E9A #4C40C6 #786FD4 #A49EE2 #D0CDF0
Accessibility & contrast
On white
4.18
#786FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.02
#786FD4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FD4
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FD4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FD4 | 1.00 | 4.18 | 5.02 | 5.02 |
| #FFFFFF | 4.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#467FD8
Deuteranopia (green-blind)
#4379D2
Tritanopia (blue-blind)
#5C8497
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786fd4; /* rgb */ color: rgb(120, 111, 212); /* oklch */ color: oklch(59.7% 0.150 285.0);
Tailwind
colors: {
custom: {
50: '#a498e2',
500: '#786fd4',
950: '#000000',
},
}SCSS
$custom: #786fd4; $custom-light: #a498e2; $custom-dark: #000000;
JSON
{
"hex": "#786fd4",
"rgb": {
"r": 120,
"g": 111,
"b": 212
},
"hsl": {
"h": 245.347,
"s": 54.011,
"l": 63.333
},
"oklch": {
"l": 0.59734,
"c": 0.14986,
"h": 285
},
"luminance": 0.20115
}Semantic roles & 50–950 ramp
primary
#786FD4
secondary
#DEE1BD
accent
#C124B3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83