#796FF5#796FF5
#796FF5 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 62.0% C 0.194 H 282.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #796FF5 |
|---|---|
| RGB | rgb(121, 111, 245) |
| HSL | hsl(244, 87%, 70%) |
| HSV | hsv(244, 55%, 96%) |
| CMYK | cmyk(50.6%, 54.7%, 0%, 3.9%) |
| CIE-LAB | lab(54.05, 38.65, -66.24) |
| CIE-LCH | lch(54.05, 76.70, 300.26°) |
| OKLab | oklab(61.96% 0.042 -0.1893) |
| OKLCH | oklch(61.96% 0.194 282.5) |
| XYZ | xyz(30.0460, 22.0248, 89.0365) |
| Luminance | 0.2203 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.43
Cornflower
#6A79F7
ΔE00 4.43
Periwinkle (survey)
#8E82FE
ΔE00 6.23
Mediumpurple
#9370DB
ΔE00 6.71
Lavender Blue
#8B88F8
ΔE00 7.54
Dark Periwinkle
#665FD1
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796FF5 #EBF56F
analogous
#6FA8F5 #796FF5 #BC6FF5
triadic
#796FF5 #F5796F #6FF579
tetradic
#796FF5 #F56FA8 #EBF56F #6FF5BC
square
#796FF5 #F56FA8 #EBF56F #6FF5BC
split-complementary
#796FF5 #F5BC6F #A8F56F
monochromatic
#1E0FDA #4436F1 #796FF5 #AEA8F9 #E4E1FD
Accessibility & contrast
On white
3.89
#796FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.41
#796FF5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796FF5
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796FF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796FF5 | 1.00 | 3.89 | 5.41 | 5.41 |
| #FFFFFF | 3.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1886FA
Deuteranopia (green-blind)
#007DF2
Tritanopia (blue-blind)
#488DA7
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #796ff5; /* rgb */ color: rgb(121, 111, 245); /* oklch */ color: oklch(62.0% 0.194 282.5);
Tailwind
colors: {
custom: {
50: '#a898f9',
500: '#796ff5',
950: '#000000',
},
}SCSS
$custom: #796ff5; $custom-light: #a898f9; $custom-dark: #000000;
JSON
{
"hex": "#796ff5",
"rgb": {
"r": 121,
"g": 111,
"b": 245
},
"hsl": {
"h": 244.478,
"s": 87.013,
"l": 69.804
},
"oklch": {
"l": 0.61959,
"c": 0.19395,
"h": 282.5
},
"luminance": 0.22026
}Semantic roles & 50–950 ramp
primary
#796FF5
secondary
#F0F3CD
accent
#E402D3
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#100E17
muted
#7F7E85