#786BEA#786BEA
#786BEA is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.4% C 0.185 H 284.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #786BEA |
|---|---|
| RGB | rgb(120, 107, 234) |
| HSL | hsl(246, 75%, 67%) |
| HSV | hsv(246, 54%, 92%) |
| CMYK | cmyk(48.7%, 54.3%, 0%, 8.2%) |
| CIE-LAB | lab(52.34, 37.53, -62.87) |
| CIE-LCH | lch(52.34, 73.22, 300.83°) |
| OKLab | oklab(60.44% 0.0449 -0.1795) |
| OKLCH | oklch(60.44% 0.185 284) |
| XYZ | xyz(27.8503, 20.4476, 80.3052) |
| Luminance | 0.2045 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.19
Cornflower
#6A79F7
ΔE00 5.75
Dark Periwinkle
#665FD1
ΔE00 6.03
Mediumpurple
#9370DB
ΔE00 6.16
Purpley
#8756E4
ΔE00 6.73
Light Indigo
#6D5ACF
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BEA #DDEA6B
analogous
#6B9EEA #786BEA #B86BEA
triadic
#786BEA #EA786B #6BEA78
tetradic
#786BEA #EA6B9E #DDEA6B #6BEAB8
square
#786BEA #EA6B9E #DDEA6B #6BEAB8
split-complementary
#786BEA #EAB86B #9EEA6B
monochromatic
#2C1BBF #4735E2 #786BEA #A9A1F2 #DAD6F9
Accessibility & contrast
On white
4.13
#786BEA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.09
#786BEA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786BEA
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BEA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786BEA | 1.00 | 4.13 | 5.09 | 5.09 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2081EE
Deuteranopia (green-blind)
#1679E7
Tritanopia (blue-blind)
#4F87A0
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #786bea; /* rgb */ color: rgb(120, 107, 234); /* oklch */ color: oklch(60.4% 0.185 284.0);
Tailwind
colors: {
custom: {
50: '#a695f1',
500: '#786bea',
950: '#000000',
},
}SCSS
$custom: #786bea; $custom-light: #a695f1; $custom-dark: #000000;
JSON
{
"hex": "#786bea",
"rgb": {
"r": 120,
"g": 107,
"b": 234
},
"hsl": {
"h": 246.142,
"s": 75.148,
"l": 66.863
},
"oklch": {
"l": 0.6044,
"c": 0.18501,
"h": 284
},
"luminance": 0.20449
}Semantic roles & 50–950 ramp
primary
#786BEA
secondary
#E9EDC4
accent
#D70EC3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85