#796FE2#796FE2
#796FE2 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.7% C 0.169 H 284.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #796FE2 |
|---|---|
| RGB | rgb(121, 111, 226) |
| HSL | hsl(245, 66%, 66%) |
| HSV | hsv(245, 51%, 89%) |
| CMYK | cmyk(46.5%, 50.9%, 0%, 11.4%) |
| CIE-LAB | lab(52.87, 33.03, -57.53) |
| CIE-LCH | lch(52.87, 66.34, 299.86°) |
| OKLab | oklab(60.69% 0.0411 -0.1637) |
| OKLCH | oklch(60.69% 0.169 284.1) |
| XYZ | xyz(27.2930, 20.9235, 74.5373) |
| Luminance | 0.2092 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.70
Cornflower
#6A79F7
ΔE00 5.42
Mediumpurple
#9370DB
ΔE00 5.62
Dark Periwinkle
#665FD1
ΔE00 6.41
Periwinkle (survey)
#8E82FE
ΔE00 7.24
Light Indigo
#6D5ACF
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796FE2 #D8E26F
analogous
#6F9EE2 #796FE2 #B26FE2
triadic
#796FE2 #E2796F #6FE279
tetradic
#796FE2 #E26F9E #D8E26F #6FE2B2
square
#796FE2 #E26F9E #D8E26F #6FE2B2
split-complementary
#796FE2 #E2B26F #9EE26F
monochromatic
#3024B3 #4A3CD8 #796FE2 #A8A2EC #D8D5F7
Accessibility & contrast
On white
4.05
#796FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#796FE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796FE2
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796FE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796FE2 | 1.00 | 4.05 | 5.19 | 5.19 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3982E6
Deuteranopia (green-blind)
#337BDF
Tritanopia (blue-blind)
#55889E
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #796fe2; /* rgb */ color: rgb(121, 111, 226); /* oklch */ color: oklch(60.7% 0.169 284.1);
Tailwind
colors: {
custom: {
50: '#a698ec',
500: '#796fe2',
950: '#000000',
},
}SCSS
$custom: #796fe2; $custom-light: #a698ec; $custom-dark: #000000;
JSON
{
"hex": "#796fe2",
"rgb": {
"r": 121,
"g": 111,
"b": 226
},
"hsl": {
"h": 245.217,
"s": 66.474,
"l": 66.078
},
"oklch": {
"l": 0.60693,
"c": 0.16883,
"h": 284.1
},
"luminance": 0.20925
}Semantic roles & 50–950 ramp
primary
#796FE2
secondary
#E6E9C4
accent
#CE17BE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84