#786AF3#786AF3
#786AF3 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.9% C 0.198 H 283.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #786AF3 |
|---|---|
| RGB | rgb(120, 106, 243) |
| HSL | hsl(246, 85%, 68%) |
| HSV | hsv(246, 56%, 95%) |
| CMYK | cmyk(50.6%, 56.4%, 0%, 4.7%) |
| CIE-LAB | lab(52.70, 40.78, -67.32) |
| CIE-LCH | lch(52.70, 78.71, 301.20°) |
| OKLab | oklab(60.89% 0.046 -0.1926) |
| OKLCH | oklch(60.89% 0.198 283.4) |
| XYZ | xyz(29.0725, 20.7706, 87.2539) |
| Luminance | 0.2077 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.10
Cornflower
#6A79F7
ΔE00 5.66
Dark Periwinkle
#665FD1
ΔE00 6.72
Mediumpurple
#9370DB
ΔE00 6.73
Purpley
#8756E4
ΔE00 6.78
Light Indigo
#6D5ACF
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AF3 #E5F36A
analogous
#6AA0F3 #786AF3 #BC6AF3
triadic
#786AF3 #F3786A #6AF378
tetradic
#786AF3 #F36AA0 #E5F36A #6AF3BC
square
#786AF3 #F36AA0 #E5F36A #6AF3BC
split-complementary
#786AF3 #F3BC6A #A0F36A
monochromatic
#2511D2 #4531EE #786AF3 #ABA3F8 #DFDBFC
Accessibility & contrast
On white
4.07
#786AF3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#786AF3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AF3
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AF3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AF3 | 1.00 | 4.07 | 5.15 | 5.15 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0082F8
Deuteranopia (green-blind)
#0079F0
Tritanopia (blue-blind)
#4889A4
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786af3; /* rgb */ color: rgb(120, 106, 243); /* oklch */ color: oklch(60.9% 0.198 283.4);
Tailwind
colors: {
custom: {
50: '#a795f8',
500: '#786af3',
950: '#000000',
},
}SCSS
$custom: #786af3; $custom-light: #a795f8; $custom-dark: #000000;
JSON
{
"hex": "#786af3",
"rgb": {
"r": 120,
"g": 106,
"b": 243
},
"hsl": {
"h": 246.131,
"s": 85.093,
"l": 68.431
},
"oklch": {
"l": 0.60893,
"c": 0.19802,
"h": 283.4
},
"luminance": 0.20772
}Semantic roles & 50–950 ramp
primary
#786AF3
secondary
#EDF1C8
accent
#E204CB
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85