#786CE6#786CE6
#786CE6 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.3% C 0.178 H 284.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #786CE6 |
|---|---|
| RGB | rgb(120, 108, 230) |
| HSL | hsl(246, 71%, 66%) |
| HSV | hsv(246, 53%, 90%) |
| CMYK | cmyk(47.8%, 53%, 0%, 9.8%) |
| CIE-LAB | lab(52.32, 35.76, -60.66) |
| CIE-LCH | lch(52.32, 70.42, 300.52°) |
| OKLab | oklab(60.35% 0.0436 -0.173) |
| OKLCH | oklch(60.35% 0.178 284.1) |
| XYZ | xyz(27.3870, 20.4300, 77.3479) |
| Luminance | 0.2043 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.70
Cornflower
#6A79F7
ΔE00 5.73
Dark Periwinkle
#665FD1
ΔE00 5.90
Mediumpurple
#9370DB
ΔE00 5.95
Light Indigo
#6D5ACF
ΔE00 6.82
Purpley
#8756E4
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CE6 #DAE66C
analogous
#6C9DE6 #786CE6 #B56CE6
triadic
#786CE6 #E6786C #6CE678
tetradic
#786CE6 #E66C9D #DAE66C #6CE6B5
square
#786CE6 #E66C9D #DAE66C #6CE6B5
split-complementary
#786CE6 #E6B56C #9DE66C
monochromatic
#2E1FB8 #4838DD #786CE6 #A8A0EF #D8D5F8
Accessibility & contrast
On white
4.13
#786CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.09
#786CE6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CE6
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CE6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CE6 | 1.00 | 4.13 | 5.09 | 5.09 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B81EA
Deuteranopia (green-blind)
#2479E3
Tritanopia (blue-blind)
#51879F
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #786ce6; /* rgb */ color: rgb(120, 108, 230); /* oklch */ color: oklch(60.3% 0.178 284.1);
Tailwind
colors: {
custom: {
50: '#a696ef',
500: '#786ce6',
950: '#000000',
},
}SCSS
$custom: #786ce6; $custom-light: #a696ef; $custom-dark: #000000;
JSON
{
"hex": "#786ce6",
"rgb": {
"r": 120,
"g": 108,
"b": 230
},
"hsl": {
"h": 245.902,
"s": 70.93,
"l": 66.275
},
"oklch": {
"l": 0.60345,
"c": 0.17839,
"h": 284.1
},
"luminance": 0.20431
}Semantic roles & 50–950 ramp
primary
#786CE6
secondary
#E7EBC3
accent
#D313C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84