#786FD9#786FD9
#786FD9 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.0% C 0.157 H 284.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #786FD9 |
|---|---|
| RGB | rgb(120, 111, 217) |
| HSL | hsl(245, 58%, 64%) |
| HSV | hsv(245, 49%, 85%) |
| CMYK | cmyk(44.7%, 48.8%, 0%, 14.9%) |
| CIE-LAB | lab(52.25, 30.17, -53.44) |
| CIE-LCH | lch(52.25, 61.37, 299.45°) |
| OKLab | oklab(60.04% 0.0392 -0.1517) |
| OKLCH | oklch(60.04% 0.157 284.5) |
| XYZ | xyz(25.9509, 20.3706, 68.1967) |
| Luminance | 0.2037 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.69
Mediumpurple
#9370DB
ΔE00 5.61
Dark Periwinkle
#665FD1
ΔE00 5.95
Cornflower
#6A79F7
ΔE00 6.18
Light Indigo
#6D5ACF
ΔE00 6.99
Slate Blue
#6A5ACD
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FD9 #D0D96F
analogous
#6F9BD9 #786FD9 #AD6FD9
triadic
#786FD9 #D9786F #6FD978
tetradic
#786FD9 #D96F9B #D0D96F #6FD9AD
square
#786FD9 #D96F9B #D0D96F #6FD9AD
split-complementary
#786FD9 #D9AD6F #9BD96F
monochromatic
#352BA3 #4B3FCC #786FD9 #A59FE6 #D3D0F3
Accessibility & contrast
On white
4.14
#786FD9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.07
#786FD9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FD9
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FD9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FD9 | 1.00 | 4.14 | 5.07 | 5.07 |
| #FFFFFF | 4.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4280DD
Deuteranopia (green-blind)
#3E79D7
Tritanopia (blue-blind)
#59859A
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #786fd9; /* rgb */ color: rgb(120, 111, 217); /* oklch */ color: oklch(60.0% 0.157 284.5);
Tailwind
colors: {
custom: {
50: '#a498e5',
500: '#786fd9',
950: '#000000',
},
}SCSS
$custom: #786fd9; $custom-light: #a498e5; $custom-dark: #000000;
JSON
{
"hex": "#786fd9",
"rgb": {
"r": 120,
"g": 111,
"b": 217
},
"hsl": {
"h": 245.094,
"s": 58.242,
"l": 64.314
},
"oklch": {
"l": 0.60043,
"c": 0.15673,
"h": 284.5
},
"luminance": 0.20372
}Semantic roles & 50–950 ramp
primary
#786FD9
secondary
#E1E4C0
accent
#C620B8
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84