#786FD2#786FD2
#786FD2 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.6% C 0.147 H 285.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #786FD2 |
|---|---|
| RGB | rgb(120, 111, 210) |
| HSL | hsl(245, 52%, 63%) |
| HSV | hsv(245, 47%, 82%) |
| CMYK | cmyk(42.9%, 47.1%, 0%, 17.6%) |
| CIE-LAB | lab(51.85, 28.14, -50.11) |
| CIE-LCH | lch(51.85, 57.47, 299.32°) |
| OKLab | oklab(59.61% 0.0385 -0.142) |
| OKLCH | oklch(59.61% 0.147 285.2) |
| XYZ | xyz(25.0597, 20.0141, 63.5030) |
| Luminance | 0.2001 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.62
Mediumpurple
#9370DB
ΔE00 5.66
Dark Periwinkle
#665FD1
ΔE00 5.90
Light Indigo
#6D5ACF
ΔE00 6.88
Cornflower
#6A79F7
ΔE00 7.00
Slate Blue
#6A5ACD
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FD2 #C9D26F
analogous
#6F97D2 #786FD2 #AA6FD2
triadic
#786FD2 #D2786F #6FD278
tetradic
#786FD2 #D26F97 #C9D26F #6FD2AA
square
#786FD2 #D26F97 #C9D26F #6FD2AA
split-complementary
#786FD2 #D2AA6F #97D26F
monochromatic
#392F97 #4C40C3 #786FD2 #A49EE1 #CFCCEF
Accessibility & contrast
On white
4.20
#786FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#786FD2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FD2
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FD2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FD2 | 1.00 | 4.20 | 5.00 | 5.00 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#477FD6
Deuteranopia (green-blind)
#4579D0
Tritanopia (blue-blind)
#5D8396
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786fd2; /* rgb */ color: rgb(120, 111, 210); /* oklch */ color: oklch(59.6% 0.147 285.2);
Tailwind
colors: {
custom: {
50: '#a398e0',
500: '#786fd2',
950: '#000000',
},
}SCSS
$custom: #786fd2; $custom-light: #a398e0; $custom-dark: #000000;
JSON
{
"hex": "#786fd2",
"rgb": {
"r": 120,
"g": 111,
"b": 210
},
"hsl": {
"h": 245.455,
"s": 52.381,
"l": 62.941
},
"oklch": {
"l": 0.59612,
"c": 0.14709,
"h": 285.2
},
"luminance": 0.20015
}Semantic roles & 50–950 ramp
primary
#786FD2
secondary
#DDE0BD
accent
#C026B2
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83