#786ECD#786ECD
#786ECD is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.142 H 286.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #786ECD |
|---|---|
| RGB | rgb(120, 110, 205) |
| HSL | hsl(246, 49%, 62%) |
| HSV | hsv(246, 46%, 80%) |
| CMYK | cmyk(41.5%, 46.3%, 0%, 19.6%) |
| CIE-LAB | lab(51.33, 27.31, -48.10) |
| CIE-LCH | lch(51.33, 55.31, 299.58°) |
| OKLab | oklab(59.12% 0.0391 -0.1361) |
| OKLCH | oklch(59.12% 0.142 286) |
| XYZ | xyz(24.3380, 19.5518, 60.2373) |
| Luminance | 0.1955 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 5.22
Dark Periwinkle
#665FD1
ΔE00 5.75
Mediumpurple
#9370DB
ΔE00 5.78
Light Indigo
#6D5ACF
ΔE00 6.61
Slate Blue
#6A5ACD
ΔE00 6.75
Cornflower
#6A79F7
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786ECD #C3CD6E
analogous
#6E94CD #786ECD #A86ECD
triadic
#786ECD #CD786E #6ECD78
tetradic
#786ECD #CD6E94 #C3CD6E #6ECDA8
square
#786ECD #CD6E94 #C3CD6E #6ECDA8
split-complementary
#786ECD #CDA86E #94CD6E
monochromatic
#3B318F #4E41BD #786ECD #A29CDD #CDC9EC
Accessibility & contrast
On white
4.28
#786ECD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.91
#786ECD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786ECD
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786ECD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786ECD | 1.00 | 4.28 | 4.91 | 4.91 |
| #FFFFFF | 4.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A7DD0
Deuteranopia (green-blind)
#4878CB
Tritanopia (blue-blind)
#5F8194
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #786ecd; /* rgb */ color: rgb(120, 110, 205); /* oklch */ color: oklch(59.1% 0.142 286.0);
Tailwind
colors: {
custom: {
50: '#a397dd',
500: '#786ecd',
950: '#000000',
},
}SCSS
$custom: #786ecd; $custom-light: #a397dd; $custom-dark: #000000;
JSON
{
"hex": "#786ecd",
"rgb": {
"r": 120,
"g": 110,
"b": 205
},
"hsl": {
"h": 246.316,
"s": 48.718,
"l": 61.765
},
"oklch": {
"l": 0.59124,
"c": 0.14161,
"h": 286
},
"luminance": 0.19553
}Semantic roles & 50–950 ramp
primary
#786ECD
secondary
#D9DDBA
accent
#BC29AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83