#787FE5#787FE5
#787FE5 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.8% C 0.151 H 278.2°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #787FE5 |
|---|---|
| RGB | rgb(120, 127, 229) |
| HSL | hsl(236, 68%, 68%) |
| HSV | hsv(236, 48%, 90%) |
| CMYK | cmyk(47.6%, 44.5%, 0%, 10.2%) |
| CIE-LAB | lab(56.91, 24.18, -52.76) |
| CIE-LCH | lch(56.91, 58.03, 294.62°) |
| OKLab | oklab(63.78% 0.0216 -0.1496) |
| OKLCH | oklch(63.78% 0.151 278.2) |
| XYZ | xyz(29.4736, 24.8274, 77.3527) |
| Luminance | 0.2483 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 3.56
Lavender Blue
#8B88F8
ΔE00 4.51
Periwinkle (survey)
#8E82FE
ΔE00 5.12
Perrywinkle
#8F8CE7
ΔE00 5.34
Soft Blue
#6488EA
ΔE00 5.72
Mediumslateblue
#7B68EE
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787FE5 #E5DE78
analogous
#78B5E5 #787FE5 #A778E5
triadic
#787FE5 #E5787F #7FE578
tetradic
#787FE5 #E578B5 #E5DE78 #78E5A7
square
#787FE5 #E578B5 #E5DE78 #78E5A7
split-complementary
#787FE5 #E5A778 #B5E578
monochromatic
#252EBE #454EDB #787FE5 #ABB0EF #DFE0F9
Accessibility & contrast
On white
3.52
#787FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.97
#787FE5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787FE5
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787FE5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787FE5 | 1.00 | 3.52 | 5.97 | 5.97 |
| #FFFFFF | 3.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#558DE9
Deuteranopia (green-blind)
#4C84E3
Tritanopia (blue-blind)
#5095A7
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #787fe5; /* rgb */ color: rgb(120, 127, 229); /* oklch */ color: oklch(63.8% 0.151 278.2);
Tailwind
colors: {
custom: {
50: '#a5a4ee',
500: '#787fe5',
950: '#000000',
},
}SCSS
$custom: #787fe5; $custom-light: #a5a4ee; $custom-dark: #000000;
JSON
{
"hex": "#787fe5",
"rgb": {
"r": 120,
"g": 127,
"b": 229
},
"hsl": {
"h": 236.147,
"s": 67.702,
"l": 68.431
},
"oklch": {
"l": 0.63779,
"c": 0.15121,
"h": 278.2
},
"luminance": 0.24829
}Semantic roles & 50–950 ramp
primary
#787FE5
secondary
#EDEBCC
accent
#C416D0
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84