#786FCB#786FCB
#786FCB is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.137 H 285.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #786FCB |
|---|---|
| RGB | rgb(120, 111, 203) |
| HSL | hsl(246, 47%, 62%) |
| HSV | hsv(246, 45%, 80%) |
| CMYK | cmyk(40.9%, 45.3%, 0%, 20.4%) |
| CIE-LAB | lab(51.47, 26.13, -46.74) |
| CIE-LCH | lch(51.47, 53.55, 299.21°) |
| OKLab | oklab(59.19% 0.0375 -0.1321) |
| OKLCH | oklch(59.19% 0.137 285.9) |
| XYZ | xyz(24.2066, 19.6729, 59.0101) |
| Luminance | 0.1967 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 5.65
Mediumpurple
#9370DB
ΔE00 5.90
Dark Periwinkle
#665FD1
ΔE00 6.10
Light Indigo
#6D5ACF
ΔE00 6.99
Slate Blue
#6A5ACD
ΔE00 7.11
Cornflower
#6A79F7
ΔE00 7.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FCB #C2CB6F
analogous
#6F94CB #786FCB #A66FCB
triadic
#786FCB #CB786F #6FCB78
tetradic
#786FCB #CB6F94 #C2CB6F #6FCBA6
square
#786FCB #CB6F94 #C2CB6F #6FCBA6
split-complementary
#786FCB #CBA66F #94CB6F
monochromatic
#3C338D #4F43BA #786FCB #A29CDB #CCC9EB
Accessibility & contrast
On white
4.26
#786FCB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#786FCB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FCB
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FCB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FCB | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4D7DCE
Deuteranopia (green-blind)
#4B78C9
Tritanopia (blue-blind)
#608293
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #786fcb; /* rgb */ color: rgb(120, 111, 203); /* oklch */ color: oklch(59.2% 0.137 285.9);
Tailwind
colors: {
custom: {
50: '#a398db',
500: '#786fcb',
950: '#000000',
},
}SCSS
$custom: #786fcb; $custom-light: #a398db; $custom-dark: #000000;
JSON
{
"hex": "#786fcb",
"rgb": {
"r": 120,
"g": 111,
"b": 203
},
"hsl": {
"h": 245.87,
"s": 46.939,
"l": 61.569
},
"oklch": {
"l": 0.59193,
"c": 0.13735,
"h": 285.9
},
"luminance": 0.19674
}Semantic roles & 50–950 ramp
primary
#786FCB
secondary
#D9DCBA
accent
#BA2BAC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83