#786FD5#786FD5
#786FD5 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.8% C 0.151 H 284.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #786FD5 |
|---|---|
| RGB | rgb(120, 111, 213) |
| HSL | hsl(245, 55%, 64%) |
| HSV | hsv(245, 48%, 84%) |
| CMYK | cmyk(43.7%, 47.9%, 0%, 16.5%) |
| CIE-LAB | lab(52.02, 29.01, -51.54) |
| CIE-LCH | lch(52.02, 59.15, 299.37°) |
| OKLab | oklab(59.8% 0.0388 -0.1462) |
| OKLCH | oklch(59.8% 0.151 284.9) |
| XYZ | xyz(25.4369, 20.1650, 65.4898) |
| Luminance | 0.2017 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.20
Mediumpurple
#9370DB
ΔE00 5.61
Dark Periwinkle
#665FD1
ΔE00 5.89
Cornflower
#6A79F7
ΔE00 6.63
Light Indigo
#6D5ACF
ΔE00 6.91
Slate Blue
#6A5ACD
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FD5 #CCD56F
analogous
#6F99D5 #786FD5 #AB6FD5
triadic
#786FD5 #D5786F #6FD578
tetradic
#786FD5 #D56F99 #CCD56F #6FD5AB
square
#786FD5 #D56F99 #CCD56F #6FD5AB
split-complementary
#786FD5 #D5AB6F #99D56F
monochromatic
#372E9C #4C40C7 #786FD5 #A49EE3 #D1CEF1
Accessibility & contrast
On white
4.17
#786FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.03
#786FD5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FD5
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FD5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FD5 | 1.00 | 4.17 | 5.03 | 5.03 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#457FD9
Deuteranopia (green-blind)
#4279D3
Tritanopia (blue-blind)
#5B8498
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #786fd5; /* rgb */ color: rgb(120, 111, 213); /* oklch */ color: oklch(59.8% 0.151 284.9);
Tailwind
colors: {
custom: {
50: '#a498e2',
500: '#786fd5',
950: '#000000',
},
}SCSS
$custom: #786fd5; $custom-light: #a498e2; $custom-dark: #000000;
JSON
{
"hex": "#786fd5",
"rgb": {
"r": 120,
"g": 111,
"b": 213
},
"hsl": {
"h": 245.294,
"s": 54.839,
"l": 63.529
},
"oklch": {
"l": 0.59795,
"c": 0.15124,
"h": 284.9
},
"luminance": 0.20166
}Semantic roles & 50–950 ramp
primary
#786FD5
secondary
#DFE2BE
accent
#C223B4
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83