#786BF3#786BF3
#786BF3 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 61.1% C 0.197 H 283.2°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #786BF3 |
|---|---|
| RGB | rgb(120, 107, 243) |
| HSL | hsl(246, 85%, 69%) |
| HSV | hsv(246, 56%, 95%) |
| CMYK | cmyk(50.6%, 56%, 0%, 4.7%) |
| CIE-LAB | lab(52.93, 40.20, -66.96) |
| CIE-LCH | lch(52.93, 78.09, 300.98°) |
| OKLab | oklab(61.06% 0.045 -0.1915) |
| OKLCH | oklch(61.06% 0.197 283.2) |
| XYZ | xyz(29.1762, 20.9780, 87.2884) |
| Luminance | 0.2098 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.32
Cornflower
#6A79F7
ΔE00 5.39
Mediumpurple
#9370DB
ΔE00 6.70
Dark Periwinkle
#665FD1
ΔE00 6.89
Purpley
#8756E4
ΔE00 7.04
Periwinkle (survey)
#8E82FE
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BF3 #E6F36B
analogous
#6BA2F3 #786BF3 #BC6BF3
triadic
#786BF3 #F3786B #6BF378
tetradic
#786BF3 #F36BA2 #E6F36B #6BF3BC
square
#786BF3 #F36BA2 #E6F36B #6BF3BC
split-complementary
#786BF3 #F3BC6B #A2F36B
monochromatic
#2411D3 #4432EE #786BF3 #ACA4F8 #DFDCFC
Accessibility & contrast
On white
4.04
#786BF3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.20
#786BF3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786BF3
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BF3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786BF3 | 1.00 | 4.04 | 5.20 | 5.20 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0083F8
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#488AA5
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786bf3; /* rgb */ color: rgb(120, 107, 243); /* oklch */ color: oklch(61.1% 0.197 283.2);
Tailwind
colors: {
custom: {
50: '#a796f8',
500: '#786bf3',
950: '#000000',
},
}SCSS
$custom: #786bf3; $custom-light: #a796f8; $custom-dark: #000000;
JSON
{
"hex": "#786bf3",
"rgb": {
"r": 120,
"g": 107,
"b": 243
},
"hsl": {
"h": 245.735,
"s": 85,
"l": 68.627
},
"oklch": {
"l": 0.61062,
"c": 0.19671,
"h": 283.2
},
"luminance": 0.2098
}Semantic roles & 50–950 ramp
primary
#786BF3
secondary
#EDF1C9
accent
#E104CC
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85