#796AF2#796AF2
#796AF2 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.9% C 0.197 H 283.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #796AF2 |
|---|---|
| RGB | rgb(121, 106, 242) |
| HSL | hsl(247, 84%, 68%) |
| HSV | hsv(247, 56%, 95%) |
| CMYK | cmyk(50%, 56.2%, 0%, 5.1%) |
| CIE-LAB | lab(52.71, 40.68, -66.74) |
| CIE-LCH | lch(52.71, 78.16, 301.36°) |
| OKLab | oklab(60.9% 0.0473 -0.1908) |
| OKLCH | oklch(60.9% 0.197 283.9) |
| XYZ | xyz(29.0614, 20.7823, 86.4673) |
| Luminance | 0.2078 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 0.93
Cornflower
#6A79F7
ΔE00 5.78
Mediumpurple
#9370DB
ΔE00 6.52
Purpley
#8756E4
ΔE00 6.65
Dark Periwinkle
#665FD1
ΔE00 6.70
Light Indigo
#6D5ACF
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796AF2 #E3F26A
analogous
#6A9FF2 #796AF2 #BD6AF2
triadic
#796AF2 #F2796A #6AF279
tetradic
#796AF2 #F26A9F #E3F26A #6AF2BD
square
#796AF2 #F26A9F #E3F26A #6AF2BD
split-complementary
#796AF2 #F2BD6A #9FF26A
monochromatic
#2712CF #4632ED #796AF2 #ACA2F7 #DEDBFC
Accessibility & contrast
On white
4.07
#796AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.16
#796AF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796AF2
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796AF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796AF2 | 1.00 | 4.07 | 5.16 | 5.16 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0082F7
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#4B89A4
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #796af2; /* rgb */ color: rgb(121, 106, 242); /* oklch */ color: oklch(60.9% 0.197 283.9);
Tailwind
colors: {
custom: {
50: '#a895f7',
500: '#796af2',
950: '#000000',
},
}SCSS
$custom: #796af2; $custom-light: #a895f7; $custom-dark: #000000;
JSON
{
"hex": "#796af2",
"rgb": {
"r": 121,
"g": 106,
"b": 242
},
"hsl": {
"h": 246.618,
"s": 83.951,
"l": 68.235
},
"oklch": {
"l": 0.60901,
"c": 0.19661,
"h": 283.9
},
"luminance": 0.20784
}Semantic roles & 50–950 ramp
primary
#796AF2
secondary
#ECF1C7
accent
#E005C8
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85