#786BB1#786BB1
#786BB1 is a mid, moderate violet. Relative luminance 0.177; OKLCH L 57.0% C 0.106 H 291.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #786BB1 |
|---|---|
| RGB | rgb(120, 107, 177) |
| HSL | hsl(251, 31%, 56%) |
| HSV | hsv(251, 40%, 69%) |
| CMYK | cmyk(32.2%, 39.5%, 0%, 30.6%) |
| CIE-LAB | lab(49.11, 21.33, -35.49) |
| CIE-LCH | lch(49.11, 41.41, 301.00°) |
| OKLab | oklab(56.97% 0.0384 -0.0993) |
| OKLCH | oklch(56.97% 0.107 291.2) |
| XYZ | xyz(20.9372, 17.6824, 43.8964) |
| Luminance | 0.1768 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 7.01
Deep Lilac
#966EBD
ΔE00 7.04
Dark Lavender
#856798
ΔE00 7.95
Dark Periwinkle
#665FD1
ΔE00 8.23
Light Indigo
#6D5ACF
ΔE00 8.37
Slate Blue
#6A5ACD
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BB1 #A4B16B
analogous
#6B81B1 #786BB1 #9B6BB1
triadic
#786BB1 #B1786B #6BB178
tetradic
#786BB1 #B16B81 #A4B16B #6BB19B
square
#786BB1 #B16B81 #A4B16B #6BB19B
split-complementary
#786BB1 #B19B6B #81B16B
monochromatic
#41386A #5A4D92 #786BB1 #9D93C6 #C1BBDB
Accessibility & contrast
On white
4.63
#786BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.54
#786BB1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #786BB1
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##786BB1 | 1.00 | 4.63 | 4.54 | 4.63 |
| #FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5676B4
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#6B7885
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #786bb1; /* rgb */ color: rgb(120, 107, 177); /* oklch */ color: oklch(57.0% 0.106 291.2);
Tailwind
colors: {
custom: {
50: '#a195c8',
500: '#786bb1',
950: '#000000',
},
}SCSS
$custom: #786bb1; $custom-light: #a195c8; $custom-dark: #000000;
JSON
{
"hex": "#786bb1",
"rgb": {
"r": 120,
"g": 107,
"b": 177
},
"hsl": {
"h": 251.143,
"s": 30.973,
"l": 55.686
},
"oklch": {
"l": 0.56966,
"c": 0.1065,
"h": 291.2
},
"luminance": 0.17683
}Semantic roles & 50–950 ramp
primary
#786BB1
secondary
#C5CAAD
accent
#C761B4
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82