#786EF2#786EF2
#786EF2 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.5% C 0.191 H 282.6°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #786EF2 |
|---|---|
| RGB | rgb(120, 110, 242) |
| HSL | hsl(245, 84%, 69%) |
| HSV | hsv(245, 55%, 95%) |
| CMYK | cmyk(50.4%, 54.5%, 0%, 5.1%) |
| CIE-LAB | lab(53.55, 38.14, -65.39) |
| CIE-LCH | lch(53.55, 75.70, 300.26°) |
| OKLab | oklab(61.51% 0.0418 -0.1869) |
| OKLCH | oklch(61.51% 0.191 282.6) |
| XYZ | xyz(29.3438, 21.5541, 86.6013) |
| Luminance | 0.2156 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.05
Cornflower
#6A79F7
ΔE00 4.64
Mediumpurple
#9370DB
ΔE00 6.62
Periwinkle (survey)
#8E82FE
ΔE00 6.66
Dark Periwinkle
#665FD1
ΔE00 7.35
Purpley
#8756E4
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786EF2 #E8F26E
analogous
#6EA6F2 #786EF2 #BA6EF2
triadic
#786EF2 #F2786E #6EF278
tetradic
#786EF2 #F26EA6 #E8F26E #6EF2BA
square
#786EF2 #F26EA6 #E8F26E #6EF2BA
split-complementary
#786EF2 #F2BA6E #A6F26E
monochromatic
#2113D3 #4436ED #786EF2 #ACA6F7 #E1DEFC
Accessibility & contrast
On white
3.95
#786EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.31
#786EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786EF2
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786EF2 | 1.00 | 3.95 | 5.31 | 5.31 |
| #FFFFFF | 3.95 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B84F7
Deuteranopia (green-blind)
#037BEF
Tritanopia (blue-blind)
#488CA5
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #786ef2; /* rgb */ color: rgb(120, 110, 242); /* oklch */ color: oklch(61.5% 0.191 282.6);
Tailwind
colors: {
custom: {
50: '#a798f7',
500: '#786ef2',
950: '#000000',
},
}SCSS
$custom: #786ef2; $custom-light: #a798f7; $custom-dark: #000000;
JSON
{
"hex": "#786ef2",
"rgb": {
"r": 120,
"g": 110,
"b": 242
},
"hsl": {
"h": 244.545,
"s": 83.544,
"l": 69.02
},
"oklch": {
"l": 0.61505,
"c": 0.19149,
"h": 282.6
},
"luminance": 0.21556
}Semantic roles & 50–950 ramp
primary
#786EF2
secondary
#EEF1CB
accent
#E006CF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85