#786AF7#786AF7
#786AF7 is a mid, highly saturated blue. Relative luminance 0.210; OKLCH L 61.2% C 0.203 H 283.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #786AF7 |
|---|---|
| RGB | rgb(120, 106, 247) |
| HSL | hsl(246, 90%, 69%) |
| HSV | hsv(246, 57%, 97%) |
| CMYK | cmyk(51.4%, 57.1%, 0%, 3.1%) |
| CIE-LAB | lab(52.97, 41.96, -69.12) |
| CIE-LCH | lch(52.97, 80.86, 301.26°) |
| OKLab | oklab(61.18% 0.046 -0.1979) |
| OKLCH | oklch(61.18% 0.203 283.1) |
| XYZ | xyz(29.6832, 21.0149, 90.4698) |
| Luminance | 0.2102 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.50
Cornflower
#6A79F7
ΔE00 5.58
Purpley
#8756E4
ΔE00 6.98
Mediumpurple
#9370DB
ΔE00 6.99
Dark Periwinkle
#665FD1
ΔE00 7.14
Periwinkle (survey)
#8E82FE
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AF7 #E9F76A
analogous
#6AA3F7 #786AF7 #BE6AF7
triadic
#786AF7 #F7786A #6AF778
tetradic
#786AF7 #F76AA3 #E9F76A #6AF7BE
square
#786AF7 #F76AA3 #E9F76A #6AF7BE
split-complementary
#786AF7 #F7BE6A #A3F76A
monochromatic
#200CDB #4330F4 #786AF7 #ADA4FA #E1DEFD
Accessibility & contrast
On white
4.04
#786AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.20
#786AF7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AF7
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AF7 | 1.00 | 4.04 | 5.20 | 5.20 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0083FC
Deuteranopia (green-blind)
#007AF4
Tritanopia (blue-blind)
#448BA6
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786af7; /* rgb */ color: rgb(120, 106, 247); /* oklch */ color: oklch(61.2% 0.203 283.1);
Tailwind
colors: {
custom: {
50: '#a895fb',
500: '#786af7',
950: '#000000',
},
}SCSS
$custom: #786af7; $custom-light: #a895fb; $custom-dark: #000000;
JSON
{
"hex": "#786af7",
"rgb": {
"r": 120,
"g": 106,
"b": 247
},
"hsl": {
"h": 245.957,
"s": 89.809,
"l": 69.216
},
"oklch": {
"l": 0.61176,
"c": 0.20314,
"h": 283.1
},
"luminance": 0.21017
}Semantic roles & 50–950 ramp
primary
#786AF7
secondary
#EFF3CA
accent
#E600CF
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85