#786FEE#786FEE
#786FEE is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.4% C 0.185 H 282.7°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #786FEE |
|---|---|
| RGB | rgb(120, 111, 238) |
| HSL | hsl(244, 79%, 68%) |
| HSV | hsv(244, 53%, 93%) |
| CMYK | cmyk(49.6%, 53.4%, 0%, 6.7%) |
| CIE-LAB | lab(53.53, 36.37, -63.19) |
| CIE-LCH | lch(53.53, 72.91, 299.92°) |
| OKLab | oklab(61.41% 0.0406 -0.1804) |
| OKLCH | oklch(61.41% 0.185 282.7) |
| XYZ | xyz(28.8581, 21.5335, 83.5081) |
| Luminance | 0.2154 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.25
Cornflower
#6A79F7
ΔE00 4.52
Mediumpurple
#9370DB
ΔE00 6.40
Periwinkle (survey)
#8E82FE
ΔE00 6.59
Dark Periwinkle
#665FD1
ΔE00 7.20
Lavender Blue
#8B88F8
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FEE #E5EE6F
analogous
#6FA5EE #786FEE #B76FEE
triadic
#786FEE #EE786F #6FEE78
tetradic
#786FEE #EE6FA5 #E5EE6F #6FEEB7
square
#786FEE #EE6FA5 #E5EE6F #6FEEB7
split-complementary
#786FEE #EEB76F #A5EE6F
monochromatic
#2518CB #4538E8 #786FEE #ABA6F4 #DFDCFB
Accessibility & contrast
On white
3.96
#786FEE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.31
#786FEE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FEE
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FEE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FEE | 1.00 | 3.96 | 5.31 | 5.31 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2884F2
Deuteranopia (green-blind)
#1B7CEB
Tritanopia (blue-blind)
#4B8BA4
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #786fee; /* rgb */ color: rgb(120, 111, 238); /* oklch */ color: oklch(61.4% 0.185 282.7);
Tailwind
colors: {
custom: {
50: '#a798f4',
500: '#786fee',
950: '#000000',
},
}SCSS
$custom: #786fee; $custom-light: #a798f4; $custom-dark: #000000;
JSON
{
"hex": "#786fee",
"rgb": {
"r": 120,
"g": 111,
"b": 238
},
"hsl": {
"h": 244.252,
"s": 78.882,
"l": 68.431
},
"oklch": {
"l": 0.61407,
"c": 0.18493,
"h": 282.7
},
"luminance": 0.21535
}Semantic roles & 50–950 ramp
primary
#786FEE
secondary
#EDF0C9
accent
#DB0ACC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85