#786CF3#786CF3
#786CF3 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.2% C 0.195 H 283.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #786CF3 |
|---|---|
| RGB | rgb(120, 108, 243) |
| HSL | hsl(245, 85%, 69%) |
| HSV | hsv(245, 56%, 95%) |
| CMYK | cmyk(50.6%, 55.6%, 0%, 4.7%) |
| CIE-LAB | lab(53.15, 39.61, -66.59) |
| CIE-LCH | lch(53.15, 77.48, 300.75°) |
| OKLab | oklab(61.23% 0.044 -0.1904) |
| OKLCH | oklch(61.23% 0.195 283) |
| XYZ | xyz(29.2811, 21.1877, 87.3234) |
| Luminance | 0.2119 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.56
Cornflower
#6A79F7
ΔE00 5.13
Mediumpurple
#9370DB
ΔE00 6.68
Dark Periwinkle
#665FD1
ΔE00 7.06
Periwinkle (survey)
#8E82FE
ΔE00 7.11
Purpley
#8756E4
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CF3 #E7F36C
analogous
#6CA4F3 #786CF3 #BC6CF3
triadic
#786CF3 #F3786C #6CF378
tetradic
#786CF3 #F36CA4 #E7F36C #6CF3BC
square
#786CF3 #F36CA4 #E7F36C #6CF3BC
split-complementary
#786CF3 #F3BC6C #A4F36C
monochromatic
#2311D3 #4433EE #786CF3 #ACA5F8 #E0DDFC
Accessibility & contrast
On white
4.01
#786CF3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#786CF3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CF3
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CF3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CF3 | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0983F8
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#488BA5
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #786cf3; /* rgb */ color: rgb(120, 108, 243); /* oklch */ color: oklch(61.2% 0.195 283.0);
Tailwind
colors: {
custom: {
50: '#a796f8',
500: '#786cf3',
950: '#000000',
},
}SCSS
$custom: #786cf3; $custom-light: #a796f8; $custom-dark: #000000;
JSON
{
"hex": "#786cf3",
"rgb": {
"r": 120,
"g": 108,
"b": 243
},
"hsl": {
"h": 245.333,
"s": 84.906,
"l": 68.824
},
"oklch": {
"l": 0.61231,
"c": 0.19542,
"h": 283
},
"luminance": 0.21189
}Semantic roles & 50–950 ramp
primary
#786CF3
secondary
#EEF1C9
accent
#E104CE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85