#786AEC#786AEC
#786AEC is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.4% C 0.189 H 284.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #786AEC |
|---|---|
| RGB | rgb(120, 106, 236) |
| HSL | hsl(246, 77%, 67%) |
| HSV | hsv(246, 55%, 93%) |
| CMYK | cmyk(49.2%, 55.1%, 0%, 7.5%) |
| CIE-LAB | lab(52.24, 38.71, -64.16) |
| CIE-LCH | lch(52.24, 74.93, 301.10°) |
| OKLab | oklab(60.41% 0.046 -0.1833) |
| OKLCH | oklch(60.41% 0.189 284.1) |
| XYZ | xyz(28.0356, 20.3559, 81.7924) |
| Luminance | 0.2036 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 0.86
Cornflower
#6A79F7
ΔE00 5.91
Dark Periwinkle
#665FD1
ΔE00 6.03
Mediumpurple
#9370DB
ΔE00 6.31
Purpley
#8756E4
ΔE00 6.50
Light Indigo
#6D5ACF
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AEC #DEEC6A
analogous
#6A9DEC #786AEC #B96AEC
triadic
#786AEC #EC786A #6AEC78
tetradic
#786AEC #EC6A9D #DEEC6A #6AECB9
square
#786AEC #EC6A9D #DEEC6A #6AECB9
split-complementary
#786AEC #ECB96A #9DEC6A
monochromatic
#2B19C3 #4734E5 #786AEC #A9A0F3 #DAD7FA
Accessibility & contrast
On white
4.14
#786AEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.07
#786AEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AEC
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AEC | 1.00 | 4.14 | 5.07 | 5.07 |
| #FFFFFF | 4.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1781F0
Deuteranopia (green-blind)
#0678E9
Tritanopia (blue-blind)
#4D87A1
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #786aec; /* rgb */ color: rgb(120, 106, 236); /* oklch */ color: oklch(60.4% 0.189 284.1);
Tailwind
colors: {
custom: {
50: '#a795f3',
500: '#786aec',
950: '#000000',
},
}SCSS
$custom: #786aec; $custom-light: #a795f3; $custom-dark: #000000;
JSON
{
"hex": "#786aec",
"rgb": {
"r": 120,
"g": 106,
"b": 236
},
"hsl": {
"h": 246.462,
"s": 77.381,
"l": 67.059
},
"oklch": {
"l": 0.60406,
"c": 0.18895,
"h": 284.1
},
"luminance": 0.20357
}Semantic roles & 50–950 ramp
primary
#786AEC
secondary
#E9EEC4
accent
#DA0CC3
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85