#786FDA#786FDA
#786FDA is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.1% C 0.158 H 284.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #786FDA |
|---|---|
| RGB | rgb(120, 111, 218) |
| HSL | hsl(245, 59%, 65%) |
| HSV | hsv(245, 49%, 85%) |
| CMYK | cmyk(45%, 49.1%, 0%, 14.5%) |
| CIE-LAB | lab(52.31, 30.47, -53.91) |
| CIE-LCH | lch(52.31, 61.92, 299.47°) |
| OKLab | oklab(60.11% 0.0393 -0.1531) |
| OKLCH | oklch(60.11% 0.158 284.4) |
| XYZ | xyz(26.0814, 20.4228, 68.8838) |
| Luminance | 0.2042 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.57
Mediumpurple
#9370DB
ΔE00 5.62
Dark Periwinkle
#665FD1
ΔE00 5.98
Cornflower
#6A79F7
ΔE00 6.07
Light Indigo
#6D5ACF
ΔE00 7.02
Slate Blue
#6A5ACD
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FDA #D1DA6F
analogous
#6F9CDA #786FDA #AE6FDA
triadic
#786FDA #DA786F #6FDA78
tetradic
#786FDA #DA6F9C #D1DA6F #6FDAAE
square
#786FDA #DA6F9C #D1DA6F #6FDAAE
split-complementary
#786FDA #DAAE6F #9CDA6F
monochromatic
#352AA4 #4A3ECD #786FDA #A6A0E7 #D3D0F3
Accessibility & contrast
On white
4.13
#786FDA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.08
#786FDA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FDA
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FDA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FDA | 1.00 | 4.13 | 5.08 | 5.08 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4180DE
Deuteranopia (green-blind)
#3D79D8
Tritanopia (blue-blind)
#58869A
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #786fda; /* rgb */ color: rgb(120, 111, 218); /* oklch */ color: oklch(60.1% 0.158 284.4);
Tailwind
colors: {
custom: {
50: '#a498e6',
500: '#786fda',
950: '#000000',
},
}SCSS
$custom: #786fda; $custom-light: #a498e6; $custom-dark: #000000;
JSON
{
"hex": "#786fda",
"rgb": {
"r": 120,
"g": 111,
"b": 218
},
"hsl": {
"h": 245.047,
"s": 59.116,
"l": 64.51
},
"oklch": {
"l": 0.60105,
"c": 0.15809,
"h": 284.4
},
"luminance": 0.20424
}Semantic roles & 50–950 ramp
primary
#786FDA
secondary
#E2E5C0
accent
#C71FB9
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84