#786AC2#786AC2
#786AC2 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.7% C 0.132 H 288.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #786AC2 |
|---|---|
| RGB | rgb(120, 106, 194) |
| HSL | hsl(250, 42%, 59%) |
| HSV | hsv(250, 45%, 76%) |
| CMYK | cmyk(38.1%, 45.4%, 0%, 23.9%) |
| CIE-LAB | lab(49.73, 26.59, -44.34) |
| CIE-LCH | lch(49.73, 51.70, 300.95°) |
| OKLab | oklab(57.73% 0.0428 -0.1251) |
| OKLCH | oklch(57.73% 0.132 288.9) |
| XYZ | xyz(22.6347, 18.1955, 53.3480) |
| Luminance | 0.1820 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.60
Light Indigo
#6D5ACF
ΔE00 5.95
Slate Blue
#6A5ACD
ΔE00 6.06
Mediumpurple
#9370DB
ΔE00 6.53
Mediumslateblue
#7B68EE
ΔE00 6.75
Iris
#6258C4
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AC2 #B4C26A
analogous
#6A88C2 #786AC2 #A46AC2
triadic
#786AC2 #C2786A #6AC278
tetradic
#786AC2 #C26A88 #B4C26A #6AC2A4
square
#786AC2 #C26A88 #B4C26A #6AC2A4
split-complementary
#786AC2 #C2A46A #88C26A
monochromatic
#3F347E #5545A9 #786AC2 #9F95D4 #C7C1E6
Accessibility & contrast
On white
4.53
#786AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#786AC2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AC2
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AC2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AC2 | 1.00 | 4.53 | 4.64 | 4.64 |
| #FFFFFF | 4.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B78C5
Deuteranopia (green-blind)
#4B74C0
Tritanopia (blue-blind)
#647B8D
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #786ac2; /* rgb */ color: rgb(120, 106, 194); /* oklch */ color: oklch(57.7% 0.132 288.9);
Tailwind
colors: {
custom: {
50: '#a294d5',
500: '#786ac2',
950: '#000000',
},
}SCSS
$custom: #786ac2; $custom-light: #a294d5; $custom-dark: #000000;
JSON
{
"hex": "#786ac2",
"rgb": {
"r": 120,
"g": 106,
"b": 194
},
"hsl": {
"h": 249.545,
"s": 41.905,
"l": 58.824
},
"oklch": {
"l": 0.57725,
"c": 0.13221,
"h": 288.9
},
"luminance": 0.18196
}Semantic roles & 50–950 ramp
primary
#786AC2
secondary
#D0D5B3
accent
#D256BE
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83