#796AF5#796AF5
#796AF5 is a mid, highly saturated blue. Relative luminance 0.210; OKLCH L 61.1% C 0.200 H 283.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #796AF5 |
|---|---|
| RGB | rgb(121, 106, 245) |
| HSL | hsl(246, 87%, 69%) |
| HSV | hsv(246, 57%, 96%) |
| CMYK | cmyk(50.6%, 56.7%, 0%, 3.9%) |
| CIE-LAB | lab(52.91, 41.56, -68.09) |
| CIE-LCH | lch(52.91, 79.77, 301.40°) |
| OKLab | oklab(61.11% 0.0472 -0.1948) |
| OKLCH | oklch(61.11% 0.2 283.6) |
| XYZ | xyz(29.5156, 20.9640, 88.8597) |
| Luminance | 0.2097 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.22
Cornflower
#6A79F7
ΔE00 5.71
Mediumpurple
#9370DB
ΔE00 6.72
Purpley
#8756E4
ΔE00 6.80
Dark Periwinkle
#665FD1
ΔE00 7.01
Periwinkle (survey)
#8E82FE
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796AF5 #E6F56A
analogous
#6AA1F5 #796AF5 #BF6AF5
triadic
#796AF5 #F5796A #6AF579
tetradic
#796AF5 #F56AA1 #E6F56A #6AF5BF
square
#796AF5 #F56AA1 #E6F56A #6AF5BF
split-complementary
#796AF5 #F5BF6A #A1F56A
monochromatic
#240ED6 #4531F1 #796AF5 #ADA3F9 #E0DDFD
Accessibility & contrast
On white
4.04
#796AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#796AF5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796AF5
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796AF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796AF5 | 1.00 | 4.04 | 5.19 | 5.19 |
| #FFFFFF | 4.04 | 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)
#0083FA
Deuteranopia (green-blind)
#007AF2
Tritanopia (blue-blind)
#498AA5
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #796af5; /* rgb */ color: rgb(121, 106, 245); /* oklch */ color: oklch(61.1% 0.200 283.6);
Tailwind
colors: {
custom: {
50: '#a895f9',
500: '#796af5',
950: '#000000',
},
}SCSS
$custom: #796af5; $custom-light: #a895f9; $custom-dark: #000000;
JSON
{
"hex": "#796af5",
"rgb": {
"r": 121,
"g": 106,
"b": 245
},
"hsl": {
"h": 246.475,
"s": 87.421,
"l": 68.824
},
"oklch": {
"l": 0.61112,
"c": 0.20046,
"h": 283.6
},
"luminance": 0.20966
}Semantic roles & 50–950 ramp
primary
#796AF5
secondary
#EEF2C9
accent
#E402CC
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85