#786CE3#786CE3
#786CE3 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.1% C 0.174 H 284.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #786CE3 |
|---|---|
| RGB | rgb(120, 108, 227) |
| HSL | hsl(246, 68%, 66%) |
| HSV | hsv(246, 52%, 89%) |
| CMYK | cmyk(47.1%, 52.4%, 0%, 11%) |
| CIE-LAB | lab(52.13, 34.88, -59.27) |
| CIE-LCH | lch(52.13, 68.78, 300.48°) |
| OKLab | oklab(60.15% 0.0435 -0.1689) |
| OKLCH | oklch(60.15% 0.174 284.4) |
| XYZ | xyz(26.9693, 20.2630, 75.1482) |
| Luminance | 0.2026 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.99
Dark Periwinkle
#665FD1
ΔE00 5.69
Mediumpurple
#9370DB
ΔE00 5.82
Cornflower
#6A79F7
ΔE00 5.94
Light Indigo
#6D5ACF
ΔE00 6.60
Slate Blue
#6A5ACD
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CE3 #D7E36C
analogous
#6C9CE3 #786CE3 #B36CE3
triadic
#786CE3 #E3786C #6CE378
tetradic
#786CE3 #E36C9C #D7E36C #6CE3B3
square
#786CE3 #E36C9C #D7E36C #6CE3B3
split-complementary
#786CE3 #E3B36C #9CE36C
monochromatic
#3122B3 #4939D9 #786CE3 #A79FED #D6D3F7
Accessibility & contrast
On white
4.16
#786CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#786CE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CE3
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CE3 | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3080E7
Deuteranopia (green-blind)
#2A79E0
Tritanopia (blue-blind)
#53869D
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786ce3; /* rgb */ color: rgb(120, 108, 227); /* oklch */ color: oklch(60.1% 0.174 284.4);
Tailwind
colors: {
custom: {
50: '#a596ec',
500: '#786ce3',
950: '#000000',
},
}SCSS
$custom: #786ce3; $custom-light: #a596ec; $custom-dark: #000000;
JSON
{
"hex": "#786ce3",
"rgb": {
"r": 120,
"g": 108,
"b": 227
},
"hsl": {
"h": 246.05,
"s": 68,
"l": 65.686
},
"oklch": {
"l": 0.60146,
"c": 0.1744,
"h": 284.4
},
"luminance": 0.20264
}Semantic roles & 50–950 ramp
primary
#786CE3
secondary
#E5E9C2
accent
#D016BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84