#786CCC#786CCC
#786CCC is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.7% C 0.143 H 286.8°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #786CCC |
|---|---|
| RGB | rgb(120, 108, 204) |
| HSL | hsl(248, 48%, 61%) |
| HSV | hsv(248, 47%, 80%) |
| CMYK | cmyk(41.2%, 47.1%, 0%, 20%) |
| CIE-LAB | lab(50.78, 28.22, -48.41) |
| CIE-LCH | lch(50.78, 56.03, 300.24°) |
| OKLab | oklab(58.69% 0.0415 -0.137) |
| OKLCH | oklch(58.69% 0.143 286.8) |
| XYZ | xyz(24.0043, 19.0770, 59.5325) |
| Luminance | 0.1908 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 5.18
Dark Periwinkle
#665FD1
ΔE00 5.28
Mediumpurple
#9370DB
ΔE00 5.82
Light Indigo
#6D5ACF
ΔE00 5.99
Slate Blue
#6A5ACD
ΔE00 6.15
Iris
#6258C4
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CCC #C0CC6C
analogous
#6C90CC #786CCC #A86CCC
triadic
#786CCC #CC786C #6CCC78
tetradic
#786CCC #CC6C90 #C0CC6C #6CCCA8
square
#786CCC #CC6C90 #C0CC6C #6CCCA8
split-complementary
#786CCC #CCA86C #90CC6C
monochromatic
#3C318D #5041BA #786CCC #A299DC #CBC7EC
Accessibility & contrast
On white
4.36
#786CCC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#786CCC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CCC
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CCC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CCC | 1.00 | 4.36 | 4.82 | 4.82 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#4676CA
Tritanopia (blue-blind)
#607F92
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #786ccc; /* rgb */ color: rgb(120, 108, 204); /* oklch */ color: oklch(58.7% 0.143 286.8);
Tailwind
colors: {
custom: {
50: '#a396dc',
500: '#786ccc',
950: '#000000',
},
}SCSS
$custom: #786ccc; $custom-light: #a396dc; $custom-dark: #000000;
JSON
{
"hex": "#786ccc",
"rgb": {
"r": 120,
"g": 108,
"b": 204
},
"hsl": {
"h": 247.5,
"s": 48.485,
"l": 61.176
},
"oklch": {
"l": 0.58692,
"c": 0.14315,
"h": 286.8
},
"luminance": 0.19078
}Semantic roles & 50–950 ramp
primary
#786CCC
secondary
#D7DCB8
accent
#BC2AAA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83