#786BF1#786BF1
#786BF1 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.9% C 0.194 H 283.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #786BF1 |
|---|---|
| RGB | rgb(120, 107, 241) |
| HSL | hsl(246, 83%, 68%) |
| HSV | hsv(246, 56%, 95%) |
| CMYK | cmyk(50.2%, 55.6%, 0%, 5.5%) |
| CIE-LAB | lab(52.79, 39.60, -66.05) |
| CIE-LCH | lch(52.79, 77.02, 300.94°) |
| OKLab | oklab(60.92% 0.045 -0.1888) |
| OKLCH | oklch(60.92% 0.194 283.4) |
| XYZ | xyz(28.8758, 20.8578, 85.7065) |
| Luminance | 0.2086 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.19
Cornflower
#6A79F7
ΔE00 5.45
Mediumpurple
#9370DB
ΔE00 6.57
Dark Periwinkle
#665FD1
ΔE00 6.69
Purpley
#8756E4
ΔE00 6.96
Periwinkle (survey)
#8E82FE
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BF1 #E4F16B
analogous
#6BA1F1 #786BF1 #BB6BF1
triadic
#786BF1 #F1786B #6BF178
tetradic
#786BF1 #F16BA1 #E4F16B #6BF1BB
square
#786BF1 #F16BA1 #E4F16B #6BF1BB
split-complementary
#786BF1 #F1BB6B #A1F16B
monochromatic
#2613CE #4533EC #786BF1 #ABA3F6 #DEDBFC
Accessibility & contrast
On white
4.06
#786BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#786BF1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786BF1
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BF1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786BF1 | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A82F6
Deuteranopia (green-blind)
#007AEE
Tritanopia (blue-blind)
#4989A4
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786bf1; /* rgb */ color: rgb(120, 107, 241); /* oklch */ color: oklch(60.9% 0.194 283.4);
Tailwind
colors: {
custom: {
50: '#a796f6',
500: '#786bf1',
950: '#000000',
},
}SCSS
$custom: #786bf1; $custom-light: #a796f6; $custom-dark: #000000;
JSON
{
"hex": "#786bf1",
"rgb": {
"r": 120,
"g": 107,
"b": 241
},
"hsl": {
"h": 245.821,
"s": 82.716,
"l": 68.235
},
"oklch": {
"l": 0.60922,
"c": 0.19413,
"h": 283.4
},
"luminance": 0.20859
}Semantic roles & 50–950 ramp
primary
#786BF1
secondary
#ECF0C8
accent
#DF06CA
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85