#796CE2#796CE2
#796CE2 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.2% C 0.173 H 284.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #796CE2 |
|---|---|
| RGB | rgb(121, 108, 226) |
| HSL | hsl(247, 67%, 65%) |
| HSV | hsv(247, 52%, 89%) |
| CMYK | cmyk(46.5%, 52.2%, 0%, 11.4%) |
| CIE-LAB | lab(52.15, 34.81, -58.68) |
| CIE-LCH | lch(52.15, 68.22, 300.68°) |
| OKLab | oklab(60.16% 0.0446 -0.1671) |
| OKLCH | oklch(60.16% 0.173 284.9) |
| XYZ | xyz(26.9712, 20.2798, 74.4300) |
| Luminance | 0.2028 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.05
Mediumpurple
#9370DB
ΔE00 5.60
Dark Periwinkle
#665FD1
ΔE00 5.72
Cornflower
#6A79F7
ΔE00 6.12
Light Indigo
#6D5ACF
ΔE00 6.57
Purpley
#8756E4
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796CE2 #D5E26C
analogous
#6C9AE2 #796CE2 #B46CE2
triadic
#796CE2 #E2796C #6CE279
tetradic
#796CE2 #E26C9A #D5E26C #6CE2B4
square
#796CE2 #E26C9A #D5E26C #6CE2B4
split-complementary
#796CE2 #E2B46C #9AE26C
monochromatic
#3223B1 #4A39D8 #796CE2 #A89FEC #D6D2F6
Accessibility & contrast
On white
4.15
#796CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#796CE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796CE2
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796CE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796CE2 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3180E6
Deuteranopia (green-blind)
#2D79DF
Tritanopia (blue-blind)
#56869D
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #796ce2; /* rgb */ color: rgb(121, 108, 226); /* oklch */ color: oklch(60.2% 0.173 284.9);
Tailwind
colors: {
custom: {
50: '#a696ec',
500: '#796ce2',
950: '#000000',
},
}SCSS
$custom: #796ce2; $custom-light: #a696ec; $custom-dark: #000000;
JSON
{
"hex": "#796ce2",
"rgb": {
"r": 121,
"g": 108,
"b": 226
},
"hsl": {
"h": 246.61,
"s": 67.045,
"l": 65.49
},
"oklch": {
"l": 0.6016,
"c": 0.17297,
"h": 284.9
},
"luminance": 0.20281
}Semantic roles & 50–950 ramp
primary
#796CE2
secondary
#E4E9C1
accent
#CF17BB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84