#796AF3#796AF3
#796AF3 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 61.0% C 0.198 H 283.8°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #796AF3 |
|---|---|
| RGB | rgb(121, 106, 243) |
| HSL | hsl(247, 85%, 68%) |
| HSV | hsv(247, 56%, 95%) |
| CMYK | cmyk(50.2%, 56.4%, 0%, 4.7%) |
| CIE-LAB | lab(52.78, 40.97, -67.19) |
| CIE-LCH | lch(52.78, 78.70, 301.37°) |
| OKLab | oklab(60.97% 0.0473 -0.1922) |
| OKLCH | oklch(60.97% 0.198 283.8) |
| XYZ | xyz(29.2120, 20.8425, 87.2604) |
| Luminance | 0.2084 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.02
Cornflower
#6A79F7
ΔE00 5.75
Mediumpurple
#9370DB
ΔE00 6.59
Purpley
#8756E4
ΔE00 6.70
Dark Periwinkle
#665FD1
ΔE00 6.80
Light Indigo
#6D5ACF
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796AF3 #E4F36A
analogous
#6A9FF3 #796AF3 #BD6AF3
triadic
#796AF3 #F3796A #6AF379
tetradic
#796AF3 #F36A9F #E4F36A #6AF3BD
square
#796AF3 #F36A9F #E4F36A #6AF3BD
split-complementary
#796AF3 #F3BD6A #9FF36A
monochromatic
#2611D2 #4631EE #796AF3 #ACA3F8 #DFDBFC
Accessibility & contrast
On white
4.06
#796AF3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#796AF3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796AF3
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796AF3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796AF3 | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0082F8
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#4A89A4
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #796af3; /* rgb */ color: rgb(121, 106, 243); /* oklch */ color: oklch(61.0% 0.198 283.8);
Tailwind
colors: {
custom: {
50: '#a895f8',
500: '#796af3',
950: '#000000',
},
}SCSS
$custom: #796af3; $custom-light: #a895f8; $custom-dark: #000000;
JSON
{
"hex": "#796af3",
"rgb": {
"r": 121,
"g": 106,
"b": 243
},
"hsl": {
"h": 246.569,
"s": 85.093,
"l": 68.431
},
"oklch": {
"l": 0.60971,
"c": 0.19789,
"h": 283.8
},
"luminance": 0.20844
}Semantic roles & 50–950 ramp
primary
#796AF3
secondary
#ECF1C8
accent
#E204C9
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85