#786AF1#786AF1
#786AF1 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.8% C 0.195 H 283.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #786AF1 |
|---|---|
| RGB | rgb(120, 106, 241) |
| HSL | hsl(246, 83%, 68%) |
| HSV | hsv(246, 56%, 95%) |
| CMYK | cmyk(50.2%, 56%, 0%, 5.5%) |
| CIE-LAB | lab(52.56, 40.19, -66.42) |
| CIE-LCH | lch(52.56, 77.63, 301.17°) |
| OKLab | oklab(60.75% 0.046 -0.1899) |
| OKLCH | oklch(60.75% 0.195 283.6) |
| XYZ | xyz(28.7722, 20.6505, 85.6719) |
| Luminance | 0.2065 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 0.95
Cornflower
#6A79F7
ΔE00 5.72
Dark Periwinkle
#665FD1
ΔE00 6.52
Mediumpurple
#9370DB
ΔE00 6.60
Purpley
#8756E4
ΔE00 6.68
Light Indigo
#6D5ACF
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AF1 #E3F16A
analogous
#6A9FF1 #786AF1 #BB6AF1
triadic
#786AF1 #F1786A #6AF178
tetradic
#786AF1 #F16A9F #E3F16A #6AF1BB
square
#786AF1 #F16A9F #E3F16A #6AF1BB
split-complementary
#786AF1 #F1BB6A #9FF16A
monochromatic
#2713CD #4532EC #786AF1 #ABA2F6 #DDDAFC
Accessibility & contrast
On white
4.09
#786AF1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.13
#786AF1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AF1
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AF1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AF1 | 1.00 | 4.09 | 5.13 | 5.13 |
| #FFFFFF | 4.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0082F6
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#4989A3
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #786af1; /* rgb */ color: rgb(120, 106, 241); /* oklch */ color: oklch(60.8% 0.195 283.6);
Tailwind
colors: {
custom: {
50: '#a795f6',
500: '#786af1',
950: '#000000',
},
}SCSS
$custom: #786af1; $custom-light: #a795f6; $custom-dark: #000000;
JSON
{
"hex": "#786af1",
"rgb": {
"r": 120,
"g": 106,
"b": 241
},
"hsl": {
"h": 246.222,
"s": 82.822,
"l": 68.039
},
"oklch": {
"l": 0.60753,
"c": 0.19544,
"h": 283.6
},
"luminance": 0.20652
}Semantic roles & 50–950 ramp
primary
#786AF1
secondary
#ECF0C7
accent
#DF06C9
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85