#786CDD#786CDD
#786CDD is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.8% C 0.166 H 285.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #786CDD |
|---|---|
| RGB | rgb(120, 108, 221) |
| HSL | hsl(246, 62%, 65%) |
| HSV | hsv(246, 51%, 87%) |
| CMYK | cmyk(45.7%, 51.1%, 0%, 13.3%) |
| CIE-LAB | lab(51.77, 33.12, -56.48) |
| CIE-LCH | lch(51.77, 65.48, 300.39°) |
| OKLab | oklab(59.75% 0.0431 -0.1607) |
| OKLCH | oklch(59.75% 0.166 285) |
| XYZ | xyz(26.1556, 19.9375, 70.8628) |
| Luminance | 0.1994 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.69
Dark Periwinkle
#665FD1
ΔE00 5.34
Mediumpurple
#9370DB
ΔE00 5.65
Light Indigo
#6D5ACF
ΔE00 6.24
Cornflower
#6A79F7
ΔE00 6.44
Slate Blue
#6A5ACD
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CDD #D1DD6C
analogous
#6C98DD #786CDD #B16CDD
triadic
#786CDD #DD786C #6CDD78
tetradic
#786CDD #DD6C98 #D1DD6C #6CDDB1
square
#786CDD #DD6C98 #D1DD6C #6CDDB1
split-complementary
#786CDD #DDB16C #98DD6C
monochromatic
#3527A8 #4A3AD2 #786CDD #A69EE8 #D3CFF4
Accessibility & contrast
On white
4.21
#786CDD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#786CDD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CDD
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CDD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CDD | 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)
#377FE1
Deuteranopia (green-blind)
#3378DB
Tritanopia (blue-blind)
#57849A
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #786cdd; /* rgb */ color: rgb(120, 108, 221); /* oklch */ color: oklch(59.8% 0.166 285.0);
Tailwind
colors: {
custom: {
50: '#a596e8',
500: '#786cdd',
950: '#000000',
},
}SCSS
$custom: #786cdd; $custom-light: #a596e8; $custom-dark: #000000;
JSON
{
"hex": "#786cdd",
"rgb": {
"r": 120,
"g": 108,
"b": 221
},
"hsl": {
"h": 246.372,
"s": 62.431,
"l": 64.51
},
"oklch": {
"l": 0.59754,
"c": 0.16637,
"h": 285
},
"luminance": 0.19939
}Semantic roles & 50–950 ramp
primary
#786CDD
secondary
#E2E6BF
accent
#CA1BB8
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84