#786BAE#786BAE
#786BAE is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.8% C 0.102 H 291.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #786BAE |
|---|---|
| RGB | rgb(120, 107, 174) |
| HSL | hsl(252, 29%, 55%) |
| HSV | hsv(252, 39%, 68%) |
| CMYK | cmyk(31%, 38.5%, 0%, 31.8%) |
| CIE-LAB | lab(48.96, 20.53, -33.97) |
| CIE-LCH | lch(48.96, 39.69, 301.14°) |
| OKLab | oklab(56.81% 0.0378 -0.0949) |
| OKLCH | oklch(56.81% 0.102 291.7) |
| XYZ | xyz(20.6415, 17.5641, 42.3389) |
| Luminance | 0.1756 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 7.10
Deep Lavender
#8D5EB7
ΔE00 7.11
Dark Lavender
#856798
ΔE00 7.41
Royal Purple
#7851A9
ΔE00 8.72
Dark Periwinkle
#665FD1
ΔE00 8.77
Slate Blue
#6A5ACD
ΔE00 8.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BAE #A1AE6B
analogous
#6B7FAE #786BAE #9A6BAE
triadic
#786BAE #AE786B #6BAE78
tetradic
#786BAE #AE6B7F #A1AE6B #6BAE9A
square
#786BAE #AE6B7F #A1AE6B #6BAE9A
split-complementary
#786BAE #AE9A6B #7FAE6B
monochromatic
#413867 #5A4E8E #786BAE #9C93C4 #C0BAD9
Accessibility & contrast
On white
4.65
#786BAE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.51
#786BAE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #786BAE
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##786BAE | 1.00 | 4.65 | 4.51 | 4.65 |
| #FFFFFF | 4.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5875B1
Deuteranopia (green-blind)
#5973AC
Tritanopia (blue-blind)
#6C7784
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #786bae; /* rgb */ color: rgb(120, 107, 174); /* oklch */ color: oklch(56.8% 0.102 291.7);
Tailwind
colors: {
custom: {
50: '#a195c6',
500: '#786bae',
950: '#000000',
},
}SCSS
$custom: #786bae; $custom-light: #a195c6; $custom-dark: #000000;
JSON
{
"hex": "#786bae",
"rgb": {
"r": 120,
"g": 107,
"b": 174
},
"hsl": {
"h": 251.642,
"s": 29.258,
"l": 55.098
},
"oklch": {
"l": 0.56808,
"c": 0.10218,
"h": 291.7
},
"luminance": 0.17564
}Semantic roles & 50–950 ramp
primary
#786BAE
secondary
#C3C8AC
accent
#C662B2
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82