#786FCC#786FCC
#786FCC is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.3% C 0.139 H 285.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #786FCC |
|---|---|
| RGB | rgb(120, 111, 204) |
| HSL | hsl(246, 48%, 62%) |
| HSV | hsv(246, 46%, 80%) |
| CMYK | cmyk(41.2%, 45.6%, 0%, 20%) |
| CIE-LAB | lab(51.52, 26.42, -47.23) |
| CIE-LCH | lch(51.52, 54.11, 299.22°) |
| OKLab | oklab(59.25% 0.0377 -0.1335) |
| OKLCH | oklch(59.25% 0.139 285.8) |
| XYZ | xyz(24.3262, 19.7207, 59.6398) |
| Luminance | 0.1972 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 5.50
Mediumpurple
#9370DB
ΔE00 5.85
Dark Periwinkle
#665FD1
ΔE00 6.05
Light Indigo
#6D5ACF
ΔE00 6.96
Slate Blue
#6A5ACD
ΔE00 7.09
Cornflower
#6A79F7
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FCC #C3CC6F
analogous
#6F95CC #786FCC #A66FCC
triadic
#786FCC #CC786F #6FCC78
tetradic
#786FCC #CC6F95 #C3CC6F #6FCCA6
square
#786FCC #CC6F95 #C3CC6F #6FCCA6
split-complementary
#786FCC #CCA66F #95CC6F
monochromatic
#3B328E #4E42BB #786FCC #A29CDC #CDC9EC
Accessibility & contrast
On white
4.25
#786FCC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#786FCC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FCC
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FCC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FCC | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C7DCF
Deuteranopia (green-blind)
#4A78CA
Tritanopia (blue-blind)
#5F8294
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #786fcc; /* rgb */ color: rgb(120, 111, 204); /* oklch */ color: oklch(59.3% 0.139 285.8);
Tailwind
colors: {
custom: {
50: '#a398dc',
500: '#786fcc',
950: '#000000',
},
}SCSS
$custom: #786fcc; $custom-light: #a398dc; $custom-dark: #000000;
JSON
{
"hex": "#786fcc",
"rgb": {
"r": 120,
"g": 111,
"b": 204
},
"hsl": {
"h": 245.806,
"s": 47.692,
"l": 61.765
},
"oklch": {
"l": 0.59252,
"c": 0.13874,
"h": 285.8
},
"luminance": 0.19722
}Semantic roles & 50–950 ramp
primary
#786FCC
secondary
#D9DDBA
accent
#BB2BAD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83