#786CF6#786CF6
#786CF6 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.4% C 0.199 H 282.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #786CF6 |
|---|---|
| RGB | rgb(120, 108, 246) |
| HSL | hsl(245, 88%, 69%) |
| HSV | hsv(245, 56%, 96%) |
| CMYK | cmyk(51.2%, 56.1%, 0%, 3.5%) |
| CIE-LAB | lab(53.35, 40.50, -67.94) |
| CIE-LCH | lch(53.35, 79.09, 300.80°) |
| OKLab | oklab(61.44% 0.044 -0.1944) |
| OKLCH | oklch(61.44% 0.199 282.7) |
| XYZ | xyz(29.7378, 21.3704, 89.7288) |
| Luminance | 0.2137 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.79
Cornflower
#6A79F7
ΔE00 5.07
Mediumpurple
#9370DB
ΔE00 6.88
Periwinkle (survey)
#8E82FE
ΔE00 7.01
Dark Periwinkle
#665FD1
ΔE00 7.36
Purpley
#8756E4
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CF6 #EAF66C
analogous
#6CA5F6 #786CF6 #BD6CF6
triadic
#786CF6 #F6786C #6CF678
tetradic
#786CF6 #F66CA5 #EAF66C #6CF6BD
square
#786CF6 #F66CA5 #EAF66C #6CF6BD
split-complementary
#786CF6 #F6BD6C #A5F66C
monochromatic
#1F0DDA #4332F2 #786CF6 #ADA6FA #E2DFFD
Accessibility & contrast
On white
3.98
#786CF6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.27
#786CF6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CF6
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CF6 | 1.00 | 3.98 | 5.27 | 5.27 |
| #FFFFFF | 3.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0084FB
Deuteranopia (green-blind)
#007BF3
Tritanopia (blue-blind)
#458CA7
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #786cf6; /* rgb */ color: rgb(120, 108, 246); /* oklch */ color: oklch(61.4% 0.199 282.7);
Tailwind
colors: {
custom: {
50: '#a896fa',
500: '#786cf6',
950: '#000000',
},
}SCSS
$custom: #786cf6; $custom-light: #a896fa; $custom-dark: #000000;
JSON
{
"hex": "#786cf6",
"rgb": {
"r": 120,
"g": 108,
"b": 246
},
"hsl": {
"h": 245.217,
"s": 88.462,
"l": 69.412
},
"oklch": {
"l": 0.61441,
"c": 0.19928,
"h": 282.7
},
"luminance": 0.21372
}Semantic roles & 50–950 ramp
primary
#786CF6
secondary
#EFF3CB
accent
#E500D1
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85