#796AF1#796AF1
#796AF1 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.8% C 0.195 H 284.0°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #796AF1 |
|---|---|
| RGB | rgb(121, 106, 241) |
| HSL | hsl(247, 83%, 68%) |
| HSV | hsv(247, 56%, 95%) |
| CMYK | cmyk(49.8%, 56%, 0%, 5.5%) |
| CIE-LAB | lab(52.64, 40.38, -66.29) |
| CIE-LCH | lch(52.64, 77.62, 301.35°) |
| OKLab | oklab(60.83% 0.0472 -0.1895) |
| OKLCH | oklch(60.83% 0.195 284) |
| XYZ | xyz(28.9116, 20.7224, 85.6784) |
| Luminance | 0.2072 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 0.85
Cornflower
#6A79F7
ΔE00 5.81
Mediumpurple
#9370DB
ΔE00 6.46
Dark Periwinkle
#665FD1
ΔE00 6.60
Purpley
#8756E4
ΔE00 6.61
Light Indigo
#6D5ACF
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796AF1 #E2F16A
analogous
#6A9EF1 #796AF1 #BD6AF1
triadic
#796AF1 #F1796A #6AF179
tetradic
#796AF1 #F16A9E #E2F16A #6AF1BD
square
#796AF1 #F16A9E #E2F16A #6AF1BD
split-complementary
#796AF1 #F1BD6A #9EF16A
monochromatic
#2813CD #4732EC #796AF1 #ABA2F6 #DEDAFC
Accessibility & contrast
On white
4.08
#796AF1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#796AF1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796AF1
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796AF1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796AF1 | 1.00 | 4.08 | 5.14 | 5.14 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0282F6
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#4C89A3
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #796af1; /* rgb */ color: rgb(121, 106, 241); /* oklch */ color: oklch(60.8% 0.195 284.0);
Tailwind
colors: {
custom: {
50: '#a895f6',
500: '#796af1',
950: '#000000',
},
}SCSS
$custom: #796af1; $custom-light: #a895f6; $custom-dark: #000000;
JSON
{
"hex": "#796af1",
"rgb": {
"r": 121,
"g": 106,
"b": 241
},
"hsl": {
"h": 246.667,
"s": 82.822,
"l": 68.039
},
"oklch": {
"l": 0.60831,
"c": 0.19532,
"h": 284
},
"luminance": 0.20724
}Semantic roles & 50–950 ramp
primary
#796AF1
secondary
#EBF0C7
accent
#DF06C7
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85