#786CF2#786CF2
#786CF2 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 61.2% C 0.194 H 283.1°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #786CF2 |
|---|---|
| RGB | rgb(120, 108, 242) |
| HSL | hsl(245, 84%, 69%) |
| HSV | hsv(245, 55%, 95%) |
| CMYK | cmyk(50.4%, 55.4%, 0%, 5.1%) |
| CIE-LAB | lab(53.09, 39.32, -66.13) |
| CIE-LCH | lch(53.09, 76.94, 300.73°) |
| OKLab | oklab(61.16% 0.0439 -0.1891) |
| OKLCH | oklch(61.16% 0.194 283.1) |
| XYZ | xyz(29.1305, 21.1274, 86.5302) |
| Luminance | 0.2113 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.50
Cornflower
#6A79F7
ΔE00 5.16
Mediumpurple
#9370DB
ΔE00 6.61
Dark Periwinkle
#665FD1
ΔE00 6.96
Periwinkle (survey)
#8E82FE
ΔE00 7.15
Purpley
#8756E4
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CF2 #E6F26C
analogous
#6CA3F2 #786CF2 #BB6CF2
triadic
#786CF2 #F2786C #6CF278
tetradic
#786CF2 #F26CA3 #E6F26C #6CF2BB
square
#786CF2 #F26CA3 #E6F26C #6CF2BB
split-complementary
#786CF2 #F2BB6C #A3F26C
monochromatic
#2412D1 #4434ED #786CF2 #ACA4F7 #DFDCFC
Accessibility & contrast
On white
4.02
#786CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.23
#786CF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CF2
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CF2 | 1.00 | 4.02 | 5.23 | 5.23 |
| #FFFFFF | 4.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E83F7
Deuteranopia (green-blind)
#007AEF
Tritanopia (blue-blind)
#488AA5
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #786cf2; /* rgb */ color: rgb(120, 108, 242); /* oklch */ color: oklch(61.2% 0.194 283.1);
Tailwind
colors: {
custom: {
50: '#a796f7',
500: '#786cf2',
950: '#000000',
},
}SCSS
$custom: #786cf2; $custom-light: #a796f7; $custom-dark: #000000;
JSON
{
"hex": "#786cf2",
"rgb": {
"r": 120,
"g": 108,
"b": 242
},
"hsl": {
"h": 245.373,
"s": 83.75,
"l": 68.627
},
"oklch": {
"l": 0.61162,
"c": 0.19412,
"h": 283.1
},
"luminance": 0.21129
}Semantic roles & 50–950 ramp
primary
#786CF2
secondary
#EDF1C9
accent
#E005CD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85