#786FD1#786FD1
#786FD1 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.6% C 0.146 H 285.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #786FD1 |
|---|---|
| RGB | rgb(120, 111, 209) |
| HSL | hsl(246, 52%, 63%) |
| HSV | hsv(246, 47%, 82%) |
| CMYK | cmyk(42.6%, 46.9%, 0%, 18%) |
| CIE-LAB | lab(51.80, 27.86, -49.63) |
| CIE-LCH | lch(51.80, 56.91, 299.30°) |
| OKLab | oklab(59.55% 0.0383 -0.1406) |
| OKLCH | oklch(59.55% 0.146 285.3) |
| XYZ | xyz(24.9355, 19.9644, 62.8489) |
| Luminance | 0.1996 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.76
Mediumpurple
#9370DB
ΔE00 5.68
Dark Periwinkle
#665FD1
ΔE00 5.91
Light Indigo
#6D5ACF
ΔE00 6.88
Slate Blue
#6A5ACD
ΔE00 7.04
Cornflower
#6A79F7
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FD1 #C8D16F
analogous
#6F97D1 #786FD1 #A96FD1
triadic
#786FD1 #D1786F #6FD178
tetradic
#786FD1 #D16F97 #C8D16F #6FD1A9
square
#786FD1 #D16F97 #C8D16F #6FD1A9
split-complementary
#786FD1 #D1A96F #97D16F
monochromatic
#393096 #4D41C2 #786FD1 #A39DE0 #CFCCEF
Accessibility & contrast
On white
4.21
#786FD1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#786FD1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FD1
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FD1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FD1 | 1.00 | 4.21 | 4.99 | 4.99 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#487ED5
Deuteranopia (green-blind)
#4679CF
Tritanopia (blue-blind)
#5D8396
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #786fd1; /* rgb */ color: rgb(120, 111, 209); /* oklch */ color: oklch(59.6% 0.146 285.3);
Tailwind
colors: {
custom: {
50: '#a398df',
500: '#786fd1',
950: '#000000',
},
}SCSS
$custom: #786fd1; $custom-light: #a398df; $custom-dark: #000000;
JSON
{
"hex": "#786fd1",
"rgb": {
"r": 120,
"g": 111,
"b": 209
},
"hsl": {
"h": 245.51,
"s": 51.579,
"l": 62.745
},
"oklch": {
"l": 0.59551,
"c": 0.14571,
"h": 285.3
},
"luminance": 0.19965
}Semantic roles & 50–950 ramp
primary
#786FD1
secondary
#DCE0BC
accent
#BF27B1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83