#786BC1#786BC1
#786BC1 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.9% C 0.129 H 288.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).
Color values
| HEX | #786BC1 |
|---|---|
| RGB | rgb(120, 107, 193) |
| HSL | hsl(249, 41%, 59%) |
| HSV | hsv(249, 45%, 76%) |
| CMYK | cmyk(37.8%, 44.6%, 0%, 24.3%) |
| CIE-LAB | lab(49.93, 25.71, -43.45) |
| CIE-LCH | lch(49.93, 50.49, 300.61°) |
| OKLab | oklab(57.86% 0.0413 -0.1225) |
| OKLCH | oklch(57.86% 0.129 288.6) |
| XYZ | xyz(22.6264, 18.3580, 52.7931) |
| Luminance | 0.1836 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.91
Light Indigo
#6D5ACF
ΔE00 6.33
Slate Blue
#6A5ACD
ΔE00 6.42
Mediumpurple
#9370DB
ΔE00 6.57
Mediumslateblue
#7B68EE
ΔE00 6.97
Iris
#6258C4
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BC1 #B4C16B
analogous
#6B89C1 #786BC1 #A36BC1
triadic
#786BC1 #C1786B #6BC178
tetradic
#786BC1 #C16B89 #B4C16B #6BC1A3
square
#786BC1 #C16B89 #B4C16B #6BC1A3
split-complementary
#786BC1 #C1A36B #89C16B
monochromatic
#3F347D #5547A8 #786BC1 #9F96D3 #C7C1E5
Accessibility & contrast
On white
4.50
#786BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.67
#786BC1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786BC1
4.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BC1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786BC1 | 1.00 | 4.50 | 4.67 | 4.67 |
| #FFFFFF | 4.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4D79C4
Deuteranopia (green-blind)
#4D75BF
Tritanopia (blue-blind)
#657C8D
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #786bc1; /* rgb */ color: rgb(120, 107, 193); /* oklch */ color: oklch(57.9% 0.129 288.6);
Tailwind
colors: {
custom: {
50: '#a295d4',
500: '#786bc1',
950: '#000000',
},
}SCSS
$custom: #786bc1; $custom-light: #a295d4; $custom-dark: #000000;
JSON
{
"hex": "#786bc1",
"rgb": {
"r": 120,
"g": 107,
"b": 193
},
"hsl": {
"h": 249.07,
"s": 40.952,
"l": 58.824
},
"oklch": {
"l": 0.57855,
"c": 0.12928,
"h": 288.6
},
"luminance": 0.18359
}Semantic roles & 50–950 ramp
primary
#786BC1
secondary
#D0D5B3
accent
#D157BE
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83