#786CDE#786CDE
#786CDE is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.8% C 0.168 H 284.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #786CDE |
|---|---|
| RGB | rgb(120, 108, 222) |
| HSL | hsl(246, 63%, 65%) |
| HSV | hsv(246, 51%, 87%) |
| CMYK | cmyk(45.9%, 51.4%, 0%, 12.9%) |
| CIE-LAB | lab(51.83, 33.42, -56.95) |
| CIE-LCH | lch(51.83, 66.03, 300.40°) |
| OKLab | oklab(59.82% 0.0432 -0.1621) |
| OKLCH | oklch(59.82% 0.168 284.9) |
| XYZ | xyz(26.2892, 19.9909, 71.5665) |
| Luminance | 0.1999 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.57
Dark Periwinkle
#665FD1
ΔE00 5.39
Mediumpurple
#9370DB
ΔE00 5.67
Light Indigo
#6D5ACF
ΔE00 6.29
Cornflower
#6A79F7
ΔE00 6.35
Slate Blue
#6A5ACD
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CDE #D2DE6C
analogous
#6C99DE #786CDE #B16CDE
triadic
#786CDE #DE786C #6CDE78
tetradic
#786CDE #DE6C99 #D2DE6C #6CDEB1
square
#786CDE #DE6C99 #D2DE6C #6CDEB1
split-complementary
#786CDE #DEB16C #99DE6C
monochromatic
#3426AA #4A3AD3 #786CDE #A69EE9 #D4D0F4
Accessibility & contrast
On white
4.20
#786CDE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#786CDE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CDE
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CDE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CDE | 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)
#367FE2
Deuteranopia (green-blind)
#3278DB
Tritanopia (blue-blind)
#56859B
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786cde; /* rgb */ color: rgb(120, 108, 222); /* oklch */ color: oklch(59.8% 0.168 284.9);
Tailwind
colors: {
custom: {
50: '#a596e9',
500: '#786cde',
950: '#000000',
},
}SCSS
$custom: #786cde; $custom-light: #a596e9; $custom-dark: #000000;
JSON
{
"hex": "#786cde",
"rgb": {
"r": 120,
"g": 108,
"b": 222
},
"hsl": {
"h": 246.316,
"s": 63.333,
"l": 64.706
},
"oklch": {
"l": 0.59819,
"c": 0.16772,
"h": 284.9
},
"luminance": 0.19992
}Semantic roles & 50–950 ramp
primary
#786CDE
secondary
#E2E6BF
accent
#CB1AB9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84