#786FC2#786FC2
#786FC2 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.7% C 0.125 H 286.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #786FC2 |
|---|---|
| RGB | rgb(120, 111, 194) |
| HSL | hsl(247, 40%, 60%) |
| HSV | hsv(247, 43%, 76%) |
| CMYK | cmyk(38.1%, 42.8%, 0%, 23.9%) |
| CIE-LAB | lab(50.99, 23.59, -42.35) |
| CIE-LCH | lch(50.99, 48.48, 299.12°) |
| OKLab | oklab(58.67% 0.0362 -0.1193) |
| OKLCH | oklch(58.67% 0.125 286.9) |
| XYZ | xyz(23.1651, 19.2563, 53.5248) |
| Luminance | 0.1926 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumpurple
#9370DB
ΔE00 6.53
Dark Periwinkle
#665FD1
ΔE00 6.74
Mediumslateblue
#7B68EE
ΔE00 7.12
Light Indigo
#6D5ACF
ΔE00 7.46
Slate Blue
#6A5ACD
ΔE00 7.54
Deep Lilac
#966EBD
ΔE00 7.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FC2 #B9C26F
analogous
#6F90C2 #786FC2 #A26FC2
triadic
#786FC2 #C2786F #6FC278
tetradic
#786FC2 #C26F90 #B9C26F #6FC2A2
square
#786FC2 #C26F90 #B9C26F #6FC2A2
split-complementary
#786FC2 #C2A26F #90C26F
monochromatic
#3E3680 #5349AB #786FC2 #A09AD4 #C9C5E6
Accessibility & contrast
On white
4.33
#786FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#786FC2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FC2
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FC2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FC2 | 1.00 | 4.33 | 4.85 | 4.85 |
| #FFFFFF | 4.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#527CC5
Deuteranopia (green-blind)
#5177C0
Tritanopia (blue-blind)
#647F8F
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #786fc2; /* rgb */ color: rgb(120, 111, 194); /* oklch */ color: oklch(58.7% 0.125 286.9);
Tailwind
colors: {
custom: {
50: '#a298d5',
500: '#786fc2',
950: '#000000',
},
}SCSS
$custom: #786fc2; $custom-light: #a298d5; $custom-dark: #000000;
JSON
{
"hex": "#786fc2",
"rgb": {
"r": 120,
"g": 111,
"b": 194
},
"hsl": {
"h": 246.506,
"s": 40.488,
"l": 59.804
},
"oklch": {
"l": 0.58674,
"c": 0.12465,
"h": 286.9
},
"luminance": 0.19257
}Semantic roles & 50–950 ramp
primary
#786FC2
secondary
#D3D6B6
accent
#D057C3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83