#786CE0#786CE0
#786CE0 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.9% C 0.170 H 284.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #786CE0 |
|---|---|
| RGB | rgb(120, 108, 224) |
| HSL | hsl(246, 65%, 65%) |
| HSV | hsv(246, 52%, 88%) |
| CMYK | cmyk(46.4%, 51.8%, 0%, 12.2%) |
| CIE-LAB | lab(51.95, 34.00, -57.88) |
| CIE-LCH | lch(51.95, 67.13, 300.43°) |
| OKLab | oklab(59.95% 0.0433 -0.1648) |
| OKLCH | oklch(59.95% 0.17 284.7) |
| XYZ | xyz(26.5589, 20.0988, 72.9866) |
| Luminance | 0.2010 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.32
Dark Periwinkle
#665FD1
ΔE00 5.50
Mediumpurple
#9370DB
ΔE00 5.72
Cornflower
#6A79F7
ΔE00 6.17
Light Indigo
#6D5ACF
ΔE00 6.41
Slate Blue
#6A5ACD
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CE0 #D4E06C
analogous
#6C9AE0 #786CE0 #B26CE0
triadic
#786CE0 #E0786C #6CE078
tetradic
#786CE0 #E06C9A #D4E06C #6CE0B2
square
#786CE0 #E06C9A #D4E06C #6CE0B2
split-complementary
#786CE0 #E0B26C #9AE06C
monochromatic
#3325AD #4A39D5 #786CE0 #A69FEB #D5D1F5
Accessibility & contrast
On white
4.18
#786CE0 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.02
#786CE0 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CE0
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CE0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CE0 | 1.00 | 4.18 | 5.02 | 5.02 |
| #FFFFFF | 4.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#347FE4
Deuteranopia (green-blind)
#2F78DD
Tritanopia (blue-blind)
#55859C
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786ce0; /* rgb */ color: rgb(120, 108, 224); /* oklch */ color: oklch(59.9% 0.170 284.7);
Tailwind
colors: {
custom: {
50: '#a596ea',
500: '#786ce0',
950: '#000000',
},
}SCSS
$custom: #786ce0; $custom-light: #a596ea; $custom-dark: #000000;
JSON
{
"hex": "#786ce0",
"rgb": {
"r": 120,
"g": 108,
"b": 224
},
"hsl": {
"h": 246.207,
"s": 65.169,
"l": 65.098
},
"oklch": {
"l": 0.59949,
"c": 0.1704,
"h": 284.7
},
"luminance": 0.201
}Semantic roles & 50–950 ramp
primary
#786CE0
secondary
#E3E8C0
accent
#CD18BA
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84