#786CCF#786CCF
#786CCF is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.9% C 0.147 H 286.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #786CCF |
|---|---|
| RGB | rgb(120, 108, 207) |
| HSL | hsl(247, 51%, 62%) |
| HSV | hsv(247, 48%, 81%) |
| CMYK | cmyk(42%, 47.8%, 0%, 18.8%) |
| CIE-LAB | lab(50.95, 29.07, -49.85) |
| CIE-LCH | lch(50.95, 57.71, 300.25°) |
| OKLab | oklab(58.87% 0.0418 -0.1412) |
| OKLCH | oklch(58.87% 0.147 286.5) |
| XYZ | xyz(24.3676, 19.2223, 61.4457) |
| Luminance | 0.1922 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.70
Dark Periwinkle
#665FD1
ΔE00 5.17
Mediumpurple
#9370DB
ΔE00 5.70
Light Indigo
#6D5ACF
ΔE00 5.94
Slate Blue
#6A5ACD
ΔE00 6.12
Iris
#6258C4
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CCF #C3CF6C
analogous
#6C92CF #786CCF #AA6CCF
triadic
#786CCF #CF786C #6CCF78
tetradic
#786CCF #CF6C92 #C3CF6C #6CCFAA
square
#786CCF #CF6C92 #C3CF6C #6CCFAA
split-complementary
#786CCF #CFAA6C #92CF6C
monochromatic
#3B2F91 #4E3EBF #786CCF #A29ADE #CDC8ED
Accessibility & contrast
On white
4.33
#786CCF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.84
#786CCF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CCF
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CCF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CCF | 1.00 | 4.33 | 4.84 | 4.84 |
| #FFFFFF | 4.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#447CD3
Deuteranopia (green-blind)
#4377CD
Tritanopia (blue-blind)
#5E8094
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #786ccf; /* rgb */ color: rgb(120, 108, 207); /* oklch */ color: oklch(58.9% 0.147 286.5);
Tailwind
colors: {
custom: {
50: '#a396de',
500: '#786ccf',
950: '#000000',
},
}SCSS
$custom: #786ccf; $custom-light: #a396de; $custom-dark: #000000;
JSON
{
"hex": "#786ccf",
"rgb": {
"r": 120,
"g": 108,
"b": 207
},
"hsl": {
"h": 247.273,
"s": 50.769,
"l": 61.765
},
"oklch": {
"l": 0.58874,
"c": 0.14729,
"h": 286.5
},
"luminance": 0.19223
}Semantic roles & 50–950 ramp
primary
#786CCF
secondary
#D9DEB9
accent
#BE27AC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83