#786FC3#786FC3
#786FC3 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.7% C 0.126 H 286.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #786FC3 |
|---|---|
| RGB | rgb(120, 111, 195) |
| HSL | hsl(246, 41%, 60%) |
| HSV | hsv(246, 43%, 76%) |
| CMYK | cmyk(38.5%, 43.1%, 0%, 23.5%) |
| CIE-LAB | lab(51.04, 23.87, -42.84) |
| CIE-LCH | lch(51.04, 49.04, 299.13°) |
| OKLab | oklab(58.73% 0.0363 -0.1207) |
| OKLCH | oklch(58.73% 0.126 286.7) |
| XYZ | xyz(23.2778, 19.3013, 54.1182) |
| Luminance | 0.1930 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumpurple
#9370DB
ΔE00 6.44
Dark Periwinkle
#665FD1
ΔE00 6.64
Mediumslateblue
#7B68EE
ΔE00 6.95
Light Indigo
#6D5ACF
ΔE00 7.39
Slate Blue
#6A5ACD
ΔE00 7.47
Deep Lilac
#966EBD
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FC3 #BAC36F
analogous
#6F90C3 #786FC3 #A26FC3
triadic
#786FC3 #C3786F #6FC378
tetradic
#786FC3 #C36F90 #BAC36F #6FC3A2
square
#786FC3 #C36F90 #BAC36F #6FC3A2
split-complementary
#786FC3 #C3A26F #90C36F
monochromatic
#3E3682 #5348AD #786FC3 #A19AD5 #C9C5E7
Accessibility & contrast
On white
4.32
#786FC3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#786FC3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FC3
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FC3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FC3 | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#527CC6
Deuteranopia (green-blind)
#5177C1
Tritanopia (blue-blind)
#637F8F
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #786fc3; /* rgb */ color: rgb(120, 111, 195); /* oklch */ color: oklch(58.7% 0.126 286.7);
Tailwind
colors: {
custom: {
50: '#a298d5',
500: '#786fc3',
950: '#000000',
},
}SCSS
$custom: #786fc3; $custom-light: #a298d5; $custom-dark: #000000;
JSON
{
"hex": "#786fc3",
"rgb": {
"r": 120,
"g": 111,
"b": 195
},
"hsl": {
"h": 246.429,
"s": 41.176,
"l": 60
},
"oklch": {
"l": 0.58731,
"c": 0.12607,
"h": 286.7
},
"luminance": 0.19302
}Semantic roles & 50–950 ramp
primary
#786FC3
secondary
#D4D7B7
accent
#D157C4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83