#786CE2#786CE2
#786CE2 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.1% C 0.173 H 284.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #786CE2 |
|---|---|
| RGB | rgb(120, 108, 226) |
| HSL | hsl(246, 67%, 65%) |
| HSV | hsv(246, 52%, 89%) |
| CMYK | cmyk(46.9%, 52.2%, 0%, 11.4%) |
| CIE-LAB | lab(52.07, 34.59, -58.81) |
| CIE-LCH | lch(52.07, 68.23, 300.46°) |
| OKLab | oklab(60.08% 0.0434 -0.1675) |
| OKLCH | oklch(60.08% 0.173 284.5) |
| XYZ | xyz(26.8317, 20.2079, 74.4235) |
| Luminance | 0.2021 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.09
Dark Periwinkle
#665FD1
ΔE00 5.62
Mediumpurple
#9370DB
ΔE00 5.79
Cornflower
#6A79F7
ΔE00 6.01
Light Indigo
#6D5ACF
ΔE00 6.53
Slate Blue
#6A5ACD
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CE2 #D6E26C
analogous
#6C9BE2 #786CE2 #B36CE2
triadic
#786CE2 #E2786C #6CE278
tetradic
#786CE2 #E26C9B #D6E26C #6CE2B3
square
#786CE2 #E26C9B #D6E26C #6CE2B3
split-complementary
#786CE2 #E2B36C #9BE26C
monochromatic
#3123B1 #4939D8 #786CE2 #A79FEC #D6D2F6
Accessibility & contrast
On white
4.17
#786CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#786CE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CE2
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CE2 | 1.00 | 4.17 | 5.04 | 5.04 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3180E6
Deuteranopia (green-blind)
#2C79DF
Tritanopia (blue-blind)
#54869D
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786ce2; /* rgb */ color: rgb(120, 108, 226); /* oklch */ color: oklch(60.1% 0.173 284.5);
Tailwind
colors: {
custom: {
50: '#a596ec',
500: '#786ce2',
950: '#000000',
},
}SCSS
$custom: #786ce2; $custom-light: #a596ec; $custom-dark: #000000;
JSON
{
"hex": "#786ce2",
"rgb": {
"r": 120,
"g": 108,
"b": 226
},
"hsl": {
"h": 246.102,
"s": 67.045,
"l": 65.49
},
"oklch": {
"l": 0.6008,
"c": 0.17307,
"h": 284.5
},
"luminance": 0.20209
}Semantic roles & 50–950 ramp
primary
#786CE2
secondary
#E5E9C1
accent
#CF17BC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84