#786FB6#786FB6
#786FB6 is a mid, moderate blue. Relative luminance 0.187; OKLCH L 58.0% C 0.107 H 288.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #786FB6 |
|---|---|
| RGB | rgb(120, 111, 182) |
| HSL | hsl(248, 33%, 57%) |
| HSV | hsv(248, 39%, 71%) |
| CMYK | cmyk(34.1%, 39%, 0%, 28.6%) |
| CIE-LAB | lab(50.38, 20.27, -36.39) |
| CIE-LCH | lch(50.38, 41.66, 299.12°) |
| OKLab | oklab(58.02% 0.0339 -0.1019) |
| OKLCH | oklch(58.02% 0.107 288.4) |
| XYZ | xyz(21.8714, 18.7388, 46.7115) |
| Luminance | 0.1874 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Deep Lilac
#966EBD
ΔE00 7.29
Mediumpurple
#9370DB
ΔE00 7.88
Deep Lavender
#8D5EB7
ΔE00 8.12
Dark Periwinkle
#665FD1
ΔE00 8.20
Light Indigo
#6D5ACF
ΔE00 8.71
Slate Blue
#6A5ACD
ΔE00 8.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FB6 #ADB66F
analogous
#6F89B6 #786FB6 #9C6FB6
triadic
#786FB6 #B6786F #6FB678
tetradic
#786FB6 #B66F89 #ADB66F #6FB69C
square
#786FB6 #B66F89 #ADB66F #6FB69C
split-complementary
#786FB6 #B69C6F #89B66F
monochromatic
#403971 #584E9A #786FB6 #9E98CB #C4C0DF
Accessibility & contrast
On white
4.42
#786FB6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#786FB6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FB6
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FB6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FB6 | 1.00 | 4.42 | 4.75 | 4.75 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#597AB9
Deuteranopia (green-blind)
#5976B4
Tritanopia (blue-blind)
#697C8A
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #786fb6; /* rgb */ color: rgb(120, 111, 182); /* oklch */ color: oklch(58.0% 0.107 288.4);
Tailwind
colors: {
custom: {
50: '#a198cc',
500: '#786fb6',
950: '#000000',
},
}SCSS
$custom: #786fb6; $custom-light: #a198cc; $custom-dark: #000000;
JSON
{
"hex": "#786fb6",
"rgb": {
"r": 120,
"g": 111,
"b": 182
},
"hsl": {
"h": 247.606,
"s": 32.719,
"l": 57.451
},
"oklch": {
"l": 0.58015,
"c": 0.10743,
"h": 288.4
},
"luminance": 0.18739
}Semantic roles & 50–950 ramp
primary
#786FB6
secondary
#CBCFB2
accent
#C95FBB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82