#786FCE#786FCE
#786FCE is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.142 H 285.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #786FCE |
|---|---|
| RGB | rgb(120, 111, 206) |
| HSL | hsl(246, 49%, 62%) |
| HSV | hsv(246, 46%, 81%) |
| CMYK | cmyk(41.7%, 46.1%, 0%, 19.2%) |
| CIE-LAB | lab(51.63, 26.99, -48.19) |
| CIE-LCH | lch(51.63, 55.24, 299.25°) |
| OKLab | oklab(59.37% 0.038 -0.1364) |
| OKLCH | oklch(59.37% 0.142 285.6) |
| XYZ | xyz(24.5676, 19.8172, 60.9112) |
| Luminance | 0.1982 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 5.20
Mediumpurple
#9370DB
ΔE00 5.77
Dark Periwinkle
#665FD1
ΔE00 5.98
Light Indigo
#6D5ACF
ΔE00 6.91
Slate Blue
#6A5ACD
ΔE00 7.06
Cornflower
#6A79F7
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FCE #C5CE6F
analogous
#6F96CE #786FCE #A86FCE
triadic
#786FCE #CE786F #6FCE78
tetradic
#786FCE #CE6F96 #C5CE6F #6FCEA8
square
#786FCE #CE6F96 #C5CE6F #6FCEA8
split-complementary
#786FCE #CEA86F #96CE6F
monochromatic
#3A3191 #4D41BE #786FCE #A39DDE #CECAED
Accessibility & contrast
On white
4.23
#786FCE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#786FCE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FCE
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FCE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FCE | 1.00 | 4.23 | 4.96 | 4.96 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B7ED1
Deuteranopia (green-blind)
#4878CC
Tritanopia (blue-blind)
#5F8295
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #786fce; /* rgb */ color: rgb(120, 111, 206); /* oklch */ color: oklch(59.4% 0.142 285.6);
Tailwind
colors: {
custom: {
50: '#a398dd',
500: '#786fce',
950: '#000000',
},
}SCSS
$custom: #786fce; $custom-light: #a398dd; $custom-dark: #000000;
JSON
{
"hex": "#786fce",
"rgb": {
"r": 120,
"g": 111,
"b": 206
},
"hsl": {
"h": 245.684,
"s": 49.223,
"l": 62.157
},
"oklch": {
"l": 0.59371,
"c": 0.14154,
"h": 285.6
},
"luminance": 0.19818
}Semantic roles & 50–950 ramp
primary
#786FCE
secondary
#DBDEBB
accent
#BD29AF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83