#786CDC#786CDC
#786CDC is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.7% C 0.165 H 285.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #786CDC |
|---|---|
| RGB | rgb(120, 108, 220) |
| HSL | hsl(246, 62%, 64%) |
| HSV | hsv(246, 51%, 86%) |
| CMYK | cmyk(45.5%, 50.9%, 0%, 13.7%) |
| CIE-LAB | lab(51.71, 32.83, -56.01) |
| CIE-LCH | lch(51.71, 64.93, 300.38°) |
| OKLab | oklab(59.69% 0.043 -0.1593) |
| OKLCH | oklch(59.69% 0.165 285.1) |
| XYZ | xyz(26.0228, 19.8844, 70.1632) |
| Luminance | 0.1989 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.82
Dark Periwinkle
#665FD1
ΔE00 5.30
Mediumpurple
#9370DB
ΔE00 5.63
Light Indigo
#6D5ACF
ΔE00 6.19
Slate Blue
#6A5ACD
ΔE00 6.44
Cornflower
#6A79F7
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CDC #D0DC6C
analogous
#6C98DC #786CDC #B06CDC
triadic
#786CDC #DC786C #6CDC78
tetradic
#786CDC #DC6C98 #D0DC6C #6CDCB0
square
#786CDC #DC6C98 #D0DC6C #6CDCB0
split-complementary
#786CDC #DCB06C #98DC6C
monochromatic
#3528A6 #4B3BD0 #786CDC #A59DE8 #D3CFF4
Accessibility & contrast
On white
4.22
#786CDC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#786CDC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CDC
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CDC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CDC | 1.00 | 4.22 | 4.98 | 4.98 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#387EE0
Deuteranopia (green-blind)
#3478DA
Tritanopia (blue-blind)
#57849A
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #786cdc; /* rgb */ color: rgb(120, 108, 220); /* oklch */ color: oklch(59.7% 0.165 285.1);
Tailwind
colors: {
custom: {
50: '#a596e7',
500: '#786cdc',
950: '#000000',
},
}SCSS
$custom: #786cdc; $custom-light: #a596e7; $custom-dark: #000000;
JSON
{
"hex": "#786cdc",
"rgb": {
"r": 120,
"g": 108,
"b": 220
},
"hsl": {
"h": 246.429,
"s": 61.538,
"l": 64.314
},
"oklch": {
"l": 0.5969,
"c": 0.16503,
"h": 285.1
},
"luminance": 0.19886
}Semantic roles & 50–950 ramp
primary
#786CDC
secondary
#E1E5BE
accent
#C91CB7
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84