#786FF5#786FF5
#786FF5 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.9% C 0.194 H 282.1°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #786FF5 |
|---|---|
| RGB | rgb(120, 111, 245) |
| HSL | hsl(244, 87%, 70%) |
| HSV | hsv(244, 55%, 96%) |
| CMYK | cmyk(51%, 54.7%, 0%, 3.9%) |
| CIE-LAB | lab(53.98, 38.45, -66.37) |
| CIE-LCH | lch(53.98, 76.71, 300.09°) |
| OKLab | oklab(61.88% 0.0408 -0.1897) |
| OKLCH | oklch(61.88% 0.194 282.1) |
| XYZ | xyz(29.9066, 21.9528, 89.0300) |
| Luminance | 0.2195 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.48
Cornflower
#6A79F7
ΔE00 4.32
Periwinkle (survey)
#8E82FE
ΔE00 6.31
Mediumpurple
#9370DB
ΔE00 6.85
Lavender Blue
#8B88F8
ΔE00 7.58
Dark Periwinkle
#665FD1
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FF5 #ECF56F
analogous
#6FA9F5 #786FF5 #BB6FF5
triadic
#786FF5 #F5786F #6FF578
tetradic
#786FF5 #F56FA9 #ECF56F #6FF5BB
square
#786FF5 #F56FA9 #ECF56F #6FF5BB
split-complementary
#786FF5 #F5BB6F #A9F56F
monochromatic
#1D0FDA #4236F1 #786FF5 #AEA8F9 #E3E1FD
Accessibility & contrast
On white
3.90
#786FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.39
#786FF5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FF5
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FF5 | 1.00 | 3.90 | 5.39 | 5.39 |
| #FFFFFF | 3.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1886FA
Deuteranopia (green-blind)
#007CF2
Tritanopia (blue-blind)
#458DA7
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #786ff5; /* rgb */ color: rgb(120, 111, 245); /* oklch */ color: oklch(61.9% 0.194 282.1);
Tailwind
colors: {
custom: {
50: '#a798f9',
500: '#786ff5',
950: '#000000',
},
}SCSS
$custom: #786ff5; $custom-light: #a798f9; $custom-dark: #000000;
JSON
{
"hex": "#786ff5",
"rgb": {
"r": 120,
"g": 111,
"b": 245
},
"hsl": {
"h": 244.03,
"s": 87.013,
"l": 69.804
},
"oklch": {
"l": 0.61883,
"c": 0.19409,
"h": 282.1
},
"luminance": 0.21955
}Semantic roles & 50–950 ramp
primary
#786FF5
secondary
#F0F3CD
accent
#E402D4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85