#786AB2#786AB2
#786AB2 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 56.8% C 0.110 H 291.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #786AB2 |
|---|---|
| RGB | rgb(120, 106, 178) |
| HSL | hsl(252, 32%, 56%) |
| HSV | hsv(252, 40%, 70%) |
| CMYK | cmyk(32.6%, 40.4%, 0%, 30.2%) |
| CIE-LAB | lab(48.90, 22.20, -36.40) |
| CIE-LCH | lch(48.90, 42.63, 301.38°) |
| OKLab | oklab(56.83% 0.0401 -0.1019) |
| OKLCH | oklch(56.83% 0.11 291.4) |
| XYZ | xyz(20.9336, 17.5151, 44.3887) |
| Luminance | 0.1752 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 6.71
Deep Lilac
#966EBD
ΔE00 7.01
Dark Periwinkle
#665FD1
ΔE00 7.88
Light Indigo
#6D5ACF
ΔE00 7.96
Slate Blue
#6A5ACD
ΔE00 7.98
Dark Lavender
#856798
ΔE00 8.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AB2 #A4B26A
analogous
#6A80B2 #786AB2 #9C6AB2
triadic
#786AB2 #B2786A #6AB278
tetradic
#786AB2 #B26A80 #A4B26A #6AB29C
square
#786AB2 #B26A80 #A4B26A #6AB29C
split-complementary
#786AB2 #B29C6A #80B26A
monochromatic
#41376B #5A4C93 #786AB2 #9D92C7 #C1BBDC
Accessibility & contrast
On white
4.66
#786AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.50
#786AB2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #786AB2
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##786AB2 | 1.00 | 4.66 | 4.50 | 4.66 |
| #FFFFFF | 4.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5475B5
Deuteranopia (green-blind)
#5573B0
Tritanopia (blue-blind)
#6A7785
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #786ab2; /* rgb */ color: rgb(120, 106, 178); /* oklch */ color: oklch(56.8% 0.110 291.4);
Tailwind
colors: {
custom: {
50: '#a194c9',
500: '#786ab2',
950: '#000000',
},
}SCSS
$custom: #786ab2; $custom-light: #a194c9; $custom-dark: #000000;
JSON
{
"hex": "#786ab2",
"rgb": {
"r": 120,
"g": 106,
"b": 178
},
"hsl": {
"h": 251.667,
"s": 31.858,
"l": 55.686
},
"oklch": {
"l": 0.56826,
"c": 0.10953,
"h": 291.4
},
"luminance": 0.17515
}Semantic roles & 50–950 ramp
primary
#786AB2
secondary
#C5CBAD
accent
#C860B4
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82