#786FE3#786FE3
#786FE3 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.7% C 0.170 H 283.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #786FE3 |
|---|---|
| RGB | rgb(120, 111, 227) |
| HSL | hsl(245, 67%, 66%) |
| HSV | hsv(245, 51%, 89%) |
| CMYK | cmyk(47.1%, 51.1%, 0%, 11%) |
| CIE-LAB | lab(52.85, 33.11, -58.13) |
| CIE-LCH | lch(52.85, 66.89, 299.66°) |
| OKLab | oklab(60.68% 0.04 -0.1655) |
| OKLCH | oklch(60.68% 0.17 283.6) |
| XYZ | xyz(27.2912, 20.9067, 75.2555) |
| Luminance | 0.2091 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.66
Cornflower
#6A79F7
ΔE00 5.22
Mediumpurple
#9370DB
ΔE00 5.85
Dark Periwinkle
#665FD1
ΔE00 6.39
Periwinkle (survey)
#8E82FE
ΔE00 7.24
Light Indigo
#6D5ACF
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FE3 #DAE36F
analogous
#6FA0E3 #786FE3 #B26FE3
triadic
#786FE3 #E3786F #6FE378
tetradic
#786FE3 #E36FA0 #DAE36F #6FE3B2
square
#786FE3 #E36FA0 #DAE36F #6FE3B2
split-complementary
#786FE3 #E3B26F #A0E36F
monochromatic
#2E23B5 #483CD9 #786FE3 #A8A2ED #D8D5F7
Accessibility & contrast
On white
4.05
#786FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#786FE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FE3
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FE3 | 1.00 | 4.05 | 5.18 | 5.18 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3782E7
Deuteranopia (green-blind)
#317AE0
Tritanopia (blue-blind)
#53889E
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786fe3; /* rgb */ color: rgb(120, 111, 227); /* oklch */ color: oklch(60.7% 0.170 283.6);
Tailwind
colors: {
custom: {
50: '#a598ec',
500: '#786fe3',
950: '#000000',
},
}SCSS
$custom: #786fe3; $custom-light: #a598ec; $custom-dark: #000000;
JSON
{
"hex": "#786fe3",
"rgb": {
"r": 120,
"g": 111,
"b": 227
},
"hsl": {
"h": 244.655,
"s": 67.442,
"l": 66.275
},
"oklch": {
"l": 0.60679,
"c": 0.17029,
"h": 283.6
},
"luminance": 0.20908
}Semantic roles & 50–950 ramp
primary
#786FE3
secondary
#E7EAC4
accent
#CF16C1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84