#786EF3#786EF3
#786EF3 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.6% C 0.193 H 282.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #786EF3 |
|---|---|
| RGB | rgb(120, 110, 243) |
| HSL | hsl(245, 85%, 69%) |
| HSV | hsv(245, 55%, 95%) |
| CMYK | cmyk(50.6%, 54.7%, 0%, 4.7%) |
| CIE-LAB | lab(53.62, 38.44, -65.84) |
| CIE-LCH | lch(53.62, 76.24, 300.28°) |
| OKLab | oklab(61.57% 0.0418 -0.1882) |
| OKLCH | oklch(61.57% 0.193 282.5) |
| XYZ | xyz(29.4944, 21.6144, 87.3945) |
| Luminance | 0.2162 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.10
Cornflower
#6A79F7
ΔE00 4.61
Periwinkle (survey)
#8E82FE
ΔE00 6.62
Mediumpurple
#9370DB
ΔE00 6.69
Dark Periwinkle
#665FD1
ΔE00 7.44
Purpley
#8756E4
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786EF3 #E9F36E
analogous
#6EA7F3 #786EF3 #BB6EF3
triadic
#786EF3 #F3786E #6EF378
tetradic
#786EF3 #F36EA7 #E9F36E #6EF3BB
square
#786EF3 #F36EA7 #E9F36E #6EF3BB
split-complementary
#786EF3 #F3BB6E #A7F36E
monochromatic
#2012D5 #4335EE #786EF3 #ADA7F8 #E1DFFC
Accessibility & contrast
On white
3.94
#786EF3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.32
#786EF3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786EF3
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786EF3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786EF3 | 1.00 | 3.94 | 5.32 | 5.32 |
| #FFFFFF | 3.94 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1885F8
Deuteranopia (green-blind)
#007CF0
Tritanopia (blue-blind)
#478CA6
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #786ef3; /* rgb */ color: rgb(120, 110, 243); /* oklch */ color: oklch(61.6% 0.193 282.5);
Tailwind
colors: {
custom: {
50: '#a798f8',
500: '#786ef3',
950: '#000000',
},
}SCSS
$custom: #786ef3; $custom-light: #a798f8; $custom-dark: #000000;
JSON
{
"hex": "#786ef3",
"rgb": {
"r": 120,
"g": 110,
"b": 243
},
"hsl": {
"h": 244.511,
"s": 84.713,
"l": 69.216
},
"oklch": {
"l": 0.61573,
"c": 0.19279,
"h": 282.5
},
"luminance": 0.21616
}Semantic roles & 50–950 ramp
primary
#786EF3
secondary
#EFF2CB
accent
#E104D1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85