#786ED2#786ED2
#786ED2 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.149 H 285.5°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #786ED2 |
|---|---|
| RGB | rgb(120, 110, 210) |
| HSL | hsl(246, 53%, 63%) |
| HSV | hsv(246, 48%, 82%) |
| CMYK | cmyk(42.9%, 47.6%, 0%, 17.6%) |
| CIE-LAB | lab(51.61, 28.74, -50.50) |
| CIE-LCH | lch(51.61, 58.11, 299.64°) |
| OKLab | oklab(59.43% 0.0397 -0.1431) |
| OKLCH | oklch(59.43% 0.149 285.5) |
| XYZ | xyz(24.9512, 19.7971, 63.4668) |
| Luminance | 0.1980 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.47
Mediumpurple
#9370DB
ΔE00 5.62
Dark Periwinkle
#665FD1
ΔE00 5.63
Light Indigo
#6D5ACF
ΔE00 6.56
Slate Blue
#6A5ACD
ΔE00 6.74
Cornflower
#6A79F7
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786ED2 #C8D26E
analogous
#6E96D2 #786ED2 #AA6ED2
triadic
#786ED2 #D2786E #6ED278
tetradic
#786ED2 #D26E96 #C8D26E #6ED2AA
square
#786ED2 #D26E96 #C8D26E #6ED2AA
split-complementary
#786ED2 #D2AA6E #96D26E
monochromatic
#392F97 #4D3FC4 #786ED2 #A39DE0 #CFCBEF
Accessibility & contrast
On white
4.23
#786ED2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#786ED2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786ED2
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786ED2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786ED2 | 1.00 | 4.23 | 4.96 | 4.96 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#467ED6
Deuteranopia (green-blind)
#4378D0
Tritanopia (blue-blind)
#5D8396
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #786ed2; /* rgb */ color: rgb(120, 110, 210); /* oklch */ color: oklch(59.4% 0.149 285.5);
Tailwind
colors: {
custom: {
50: '#a397e0',
500: '#786ed2',
950: '#000000',
},
}SCSS
$custom: #786ed2; $custom-light: #a397e0; $custom-dark: #000000;
JSON
{
"hex": "#786ed2",
"rgb": {
"r": 120,
"g": 110,
"b": 210
},
"hsl": {
"h": 246,
"s": 52.632,
"l": 62.745
},
"oklch": {
"l": 0.59426,
"c": 0.14854,
"h": 285.5
},
"luminance": 0.19798
}Semantic roles & 50–950 ramp
primary
#786ED2
secondary
#DCE0BC
accent
#C025B1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83