#786AAF#786AAF
#786AAF is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.7% C 0.105 H 292.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #786AAF |
|---|---|
| RGB | rgb(120, 106, 175) |
| HSL | hsl(252, 30%, 55%) |
| HSV | hsv(252, 39%, 69%) |
| CMYK | cmyk(31.4%, 39.4%, 0%, 31.4%) |
| CIE-LAB | lab(48.76, 21.40, -34.88) |
| CIE-LCH | lch(48.76, 40.92, 301.52°) |
| OKLab | oklab(56.67% 0.0394 -0.0976) |
| OKLCH | oklch(56.67% 0.105 292) |
| XYZ | xyz(20.6357, 17.3959, 42.8197) |
| Luminance | 0.1740 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 6.79
Deep Lilac
#966EBD
ΔE00 7.05
Dark Lavender
#856798
ΔE00 7.55
Royal Purple
#7851A9
ΔE00 8.33
Dark Periwinkle
#665FD1
ΔE00 8.42
Light Indigo
#6D5ACF
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AAF #A1AF6A
analogous
#6A7EAF #786AAF #9B6AAF
triadic
#786AAF #AF786A #6AAF78
tetradic
#786AAF #AF6A7E #A1AF6A #6AAF9B
square
#786AAF #AF6A7E #A1AF6A #6AAF9B
split-complementary
#786AAF #AF9B6A #7EAF6A
monochromatic
#413767 #5A4D8F #786AAF #9C92C4 #C0BADA
Accessibility & contrast
On white
4.69
#786AAF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#786AAF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #786AAF
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##786AAF | 1.00 | 4.69 | 4.48 | 4.69 |
| #FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5675B2
Deuteranopia (green-blind)
#5773AD
Tritanopia (blue-blind)
#6B7684
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #786aaf; /* rgb */ color: rgb(120, 106, 175); /* oklch */ color: oklch(56.7% 0.105 292.0);
Tailwind
colors: {
custom: {
50: '#a194c7',
500: '#786aaf',
950: '#000000',
},
}SCSS
$custom: #786aaf; $custom-light: #a194c7; $custom-dark: #000000;
JSON
{
"hex": "#786aaf",
"rgb": {
"r": 120,
"g": 106,
"b": 175
},
"hsl": {
"h": 252.174,
"s": 30.131,
"l": 55.098
},
"oklch": {
"l": 0.56665,
"c": 0.10523,
"h": 292
},
"luminance": 0.17396
}Semantic roles & 50–950 ramp
primary
#786AAF
secondary
#C3C9AC
accent
#C661B2
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82