#786CFB#786CFB
#786CFB is a mid, highly saturated blue. Relative luminance 0.217; OKLCH L 61.8% C 0.206 H 282.3°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #786CFB |
|---|---|
| RGB | rgb(120, 108, 251) |
| HSL | hsl(245, 95%, 70%) |
| HSV | hsv(245, 57%, 98%) |
| CMYK | cmyk(52.2%, 57%, 0%, 1.6%) |
| CIE-LAB | lab(53.69, 41.99, -70.17) |
| CIE-LCH | lch(53.69, 81.78, 300.90°) |
| OKLab | oklab(61.8% 0.044 -0.2009) |
| OKLCH | oklch(61.8% 0.206 282.3) |
| XYZ | xyz(30.5155, 21.6815, 93.8251) |
| Luminance | 0.2168 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.26
Cornflower
#6A79F7
ΔE00 5.03
Periwinkle (survey)
#8E82FE
ΔE00 6.88
Mediumpurple
#9370DB
ΔE00 7.24
Purpley
#8756E4
ΔE00 7.73
Dark Periwinkle
#665FD1
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CFB #EFFB6C
analogous
#6CA7FB #786CFB #BF6CFB
triadic
#786CFB #FB786C #6CFB78
tetradic
#786CFB #FB6CA7 #EFFB6C #6CFBBF
square
#786CFB #FB6CA7 #EFFB6C #6CFBBF
split-complementary
#786CFB #FBBF6C #A7FB6C
monochromatic
#1906E6 #4130F9 #786CFB #AFA8FD #E4E1FE
Accessibility & contrast
On white
3.94
#786CFB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.34
#786CFB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CFB
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CFB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CFB | 1.00 | 3.94 | 5.34 | 5.34 |
| #FFFFFF | 3.94 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#007BF8
Tritanopia (blue-blind)
#408DA9
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #786cfb; /* rgb */ color: rgb(120, 108, 251); /* oklch */ color: oklch(61.8% 0.206 282.3);
Tailwind
colors: {
custom: {
50: '#a896fe',
500: '#786cfb',
950: '#000000',
},
}SCSS
$custom: #786cfb; $custom-light: #a896fe; $custom-dark: #000000;
JSON
{
"hex": "#786cfb",
"rgb": {
"r": 120,
"g": 108,
"b": 251
},
"hsl": {
"h": 245.035,
"s": 94.702,
"l": 70.392
},
"oklch": {
"l": 0.61795,
"c": 0.20569,
"h": 282.3
},
"luminance": 0.21683
}Semantic roles & 50–950 ramp
primary
#786CFB
secondary
#F2F5CE
accent
#E600D2
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86