#786CDF#786CDF
#786CDF is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.9% C 0.169 H 284.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #786CDF |
|---|---|
| RGB | rgb(120, 108, 223) |
| HSL | hsl(246, 64%, 65%) |
| HSV | hsv(246, 52%, 87%) |
| CMYK | cmyk(46.2%, 51.6%, 0%, 12.5%) |
| CIE-LAB | lab(51.89, 33.71, -57.42) |
| CIE-LCH | lch(51.89, 66.58, 300.42°) |
| OKLab | oklab(59.88% 0.0432 -0.1634) |
| OKLCH | oklch(59.88% 0.169 284.8) |
| XYZ | xyz(26.4237, 20.0447, 72.2745) |
| Luminance | 0.2005 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.44
Dark Periwinkle
#665FD1
ΔE00 5.44
Mediumpurple
#9370DB
ΔE00 5.69
Cornflower
#6A79F7
ΔE00 6.26
Light Indigo
#6D5ACF
ΔE00 6.35
Slate Blue
#6A5ACD
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CDF #D3DF6C
analogous
#6C99DF #786CDF #B26CDF
triadic
#786CDF #DF786C #6CDF78
tetradic
#786CDF #DF6C99 #D3DF6C #6CDFB2
square
#786CDF #DF6C99 #D3DF6C #6CDFB2
split-complementary
#786CDF #DFB26C #99DF6C
monochromatic
#3325AB #4A3AD4 #786CDF #A69EEA #D4D1F5
Accessibility & contrast
On white
4.19
#786CDF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#786CDF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CDF
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CDF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CDF | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#357FE3
Deuteranopia (green-blind)
#3078DC
Tritanopia (blue-blind)
#56859B
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786cdf; /* rgb */ color: rgb(120, 108, 223); /* oklch */ color: oklch(59.9% 0.169 284.8);
Tailwind
colors: {
custom: {
50: '#a596ea',
500: '#786cdf',
950: '#000000',
},
}SCSS
$custom: #786cdf; $custom-light: #a596ea; $custom-dark: #000000;
JSON
{
"hex": "#786cdf",
"rgb": {
"r": 120,
"g": 108,
"b": 223
},
"hsl": {
"h": 246.261,
"s": 64.246,
"l": 64.902
},
"oklch": {
"l": 0.59884,
"c": 0.16906,
"h": 284.8
},
"luminance": 0.20046
}Semantic roles & 50–950 ramp
primary
#786CDF
secondary
#E3E7C0
accent
#CC19B9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84