#786BCE#786BCE
#786BCE is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.6% C 0.147 H 287.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #786BCE |
|---|---|
| RGB | rgb(120, 107, 206) |
| HSL | hsl(248, 50%, 61%) |
| HSV | hsv(248, 48%, 81%) |
| CMYK | cmyk(41.7%, 48.1%, 0%, 19.2%) |
| CIE-LAB | lab(50.64, 29.38, -49.76) |
| CIE-LCH | lch(50.64, 57.79, 300.56°) |
| OKLab | oklab(58.63% 0.043 -0.141) |
| OKLCH | oklch(58.63% 0.147 287) |
| XYZ | xyz(24.1409, 18.9638, 60.7690) |
| Luminance | 0.1897 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.79
Dark Periwinkle
#665FD1
ΔE00 4.97
Light Indigo
#6D5ACF
ΔE00 5.64
Mediumpurple
#9370DB
ΔE00 5.77
Slate Blue
#6A5ACD
ΔE00 5.82
Iris
#6258C4
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BCE #C1CE6B
analogous
#6B90CE #786BCE #AA6BCE
triadic
#786BCE #CE786B #6BCE78
tetradic
#786BCE #CE6B90 #C1CE6B #6BCEAA
square
#786BCE #CE6B90 #C1CE6B #6BCEAA
split-complementary
#786BCE #CEAA6B #90CE6B
monochromatic
#3C2F8F #4F3FBD #786BCE #A299DD #CCC7EC
Accessibility & contrast
On white
4.38
#786BCE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#786BCE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786BCE
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BCE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786BCE | 1.00 | 4.38 | 4.79 | 4.79 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#437BD2
Deuteranopia (green-blind)
#4276CC
Tritanopia (blue-blind)
#5F7F93
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #786bce; /* rgb */ color: rgb(120, 107, 206); /* oklch */ color: oklch(58.6% 0.147 287.0);
Tailwind
colors: {
custom: {
50: '#a395dd',
500: '#786bce',
950: '#000000',
},
}SCSS
$custom: #786bce; $custom-light: #a395dd; $custom-dark: #000000;
JSON
{
"hex": "#786bce",
"rgb": {
"r": 120,
"g": 107,
"b": 206
},
"hsl": {
"h": 247.879,
"s": 50.254,
"l": 61.373
},
"oklch": {
"l": 0.58629,
"c": 0.14737,
"h": 287
},
"luminance": 0.18965
}Semantic roles & 50–950 ramp
primary
#786BCE
secondary
#D8DDB8
accent
#BE28AA
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83