#786CBE#786CBE
#786CBE is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.9% C 0.124 H 288.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #786CBE |
|---|---|
| RGB | rgb(120, 108, 190) |
| HSL | hsl(249, 39%, 58%) |
| HSV | hsv(249, 43%, 75%) |
| CMYK | cmyk(36.8%, 43.2%, 0%, 25.5%) |
| CIE-LAB | lab(50.02, 24.28, -41.58) |
| CIE-LCH | lch(50.02, 48.15, 300.28°) |
| OKLab | oklab(57.87% 0.0395 -0.117) |
| OKLCH | oklch(57.87% 0.124 288.6) |
| XYZ | xyz(22.4000, 18.4353, 51.0834) |
| Luminance | 0.1844 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 6.46
Mediumpurple
#9370DB
ΔE00 6.84
Light Indigo
#6D5ACF
ΔE00 6.90
Slate Blue
#6A5ACD
ΔE00 6.97
Deep Lilac
#966EBD
ΔE00 7.33
Deep Lavender
#8D5EB7
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CBE #B2BE6C
analogous
#6C89BE #786CBE #A16CBE
triadic
#786CBE #BE786C #6CBE78
tetradic
#786CBE #BE6C89 #B2BE6C #6CBEA1
square
#786CBE #BE6C89 #B2BE6C #6CBEA1
split-complementary
#786CBE #BEA16C #89BE6C
monochromatic
#40367A #5649A4 #786CBE #9F96D1 #C6C1E4
Accessibility & contrast
On white
4.48
#786CBE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.69
#786CBE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CBE
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CBE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CBE | 1.00 | 4.48 | 4.69 | 4.69 |
| #FFFFFF | 4.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5079C1
Deuteranopia (green-blind)
#5075BC
Tritanopia (blue-blind)
#667C8C
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #786cbe; /* rgb */ color: rgb(120, 108, 190); /* oklch */ color: oklch(57.9% 0.124 288.6);
Tailwind
colors: {
custom: {
50: '#a296d2',
500: '#786cbe',
950: '#000000',
},
}SCSS
$custom: #786cbe; $custom-light: #a296d2; $custom-dark: #000000;
JSON
{
"hex": "#786cbe",
"rgb": {
"r": 120,
"g": 108,
"b": 190
},
"hsl": {
"h": 248.78,
"s": 38.679,
"l": 58.431
},
"oklch": {
"l": 0.57873,
"c": 0.12352,
"h": 288.6
},
"luminance": 0.18436
}Semantic roles & 50–950 ramp
primary
#786CBE
secondary
#CED3B3
accent
#CF59BD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82