#786CF1#786CF1
#786CF1 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 61.1% C 0.193 H 283.2°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #786CF1 |
|---|---|
| RGB | rgb(120, 108, 241) |
| HSL | hsl(245, 83%, 68%) |
| HSV | hsv(245, 55%, 95%) |
| CMYK | cmyk(50.2%, 55.2%, 0%, 5.5%) |
| CIE-LAB | lab(53.02, 39.02, -65.68) |
| CIE-LCH | lch(53.02, 76.40, 300.71°) |
| OKLab | oklab(61.09% 0.0439 -0.1877) |
| OKLCH | oklch(61.09% 0.193 283.2) |
| XYZ | xyz(28.9807, 21.0675, 85.7414) |
| Luminance | 0.2107 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.45
Cornflower
#6A79F7
ΔE00 5.19
Mediumpurple
#9370DB
ΔE00 6.55
Dark Periwinkle
#665FD1
ΔE00 6.87
Periwinkle (survey)
#8E82FE
ΔE00 7.19
Purpley
#8756E4
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CF1 #E5F16C
analogous
#6CA2F1 #786CF1 #BB6CF1
triadic
#786CF1 #F1786C #6CF178
tetradic
#786CF1 #F16CA2 #E5F16C #6CF1BB
square
#786CF1 #F16CA2 #E5F16C #6CF1BB
split-complementary
#786CF1 #F1BB6C #A2F16C
monochromatic
#2514CF #4534EC #786CF1 #ABA4F6 #DFDCFC
Accessibility & contrast
On white
4.03
#786CF1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.21
#786CF1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CF1
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CF1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CF1 | 1.00 | 4.03 | 5.21 | 5.21 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1283F6
Deuteranopia (green-blind)
#007AEE
Tritanopia (blue-blind)
#498AA4
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #786cf1; /* rgb */ color: rgb(120, 108, 241); /* oklch */ color: oklch(61.1% 0.193 283.2);
Tailwind
colors: {
custom: {
50: '#a796f6',
500: '#786cf1',
950: '#000000',
},
}SCSS
$custom: #786cf1; $custom-light: #a796f6; $custom-dark: #000000;
JSON
{
"hex": "#786cf1",
"rgb": {
"r": 120,
"g": 108,
"b": 241
},
"hsl": {
"h": 245.414,
"s": 82.609,
"l": 68.431
},
"oklch": {
"l": 0.61092,
"c": 0.19282,
"h": 283.2
},
"luminance": 0.21069
}Semantic roles & 50–950 ramp
primary
#786CF1
secondary
#EDF0C8
accent
#DF06CB
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85