#796CF2#796CF2
#796CF2 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.2% C 0.194 H 283.5°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #796CF2 |
|---|---|
| RGB | rgb(121, 108, 242) |
| HSL | hsl(246, 84%, 69%) |
| HSV | hsv(246, 55%, 95%) |
| CMYK | cmyk(50%, 55.4%, 0%, 5.1%) |
| CIE-LAB | lab(53.17, 39.51, -66.00) |
| CIE-LCH | lch(53.17, 76.93, 300.91°) |
| OKLab | oklab(61.24% 0.0451 -0.1887) |
| OKLCH | oklch(61.24% 0.194 283.5) |
| XYZ | xyz(29.2699, 21.1993, 86.5368) |
| Luminance | 0.2120 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.43
Cornflower
#6A79F7
ΔE00 5.26
Mediumpurple
#9370DB
ΔE00 6.47
Dark Periwinkle
#665FD1
ΔE00 7.04
Periwinkle (survey)
#8E82FE
ΔE00 7.08
Purpley
#8756E4
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796CF2 #E5F26C
analogous
#6CA2F2 #796CF2 #BC6CF2
triadic
#796CF2 #F2796C #6CF279
tetradic
#796CF2 #F26CA2 #E5F26C #6CF2BC
square
#796CF2 #F26CA2 #E5F26C #6CF2BC
split-complementary
#796CF2 #F2BC6C #A2F26C
monochromatic
#2512D1 #4634ED #796CF2 #ACA4F7 #E0DCFC
Accessibility & contrast
On white
4.01
#796CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#796CF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796CF2
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796CF2 | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1083F7
Deuteranopia (green-blind)
#007BEF
Tritanopia (blue-blind)
#4B8AA5
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #796cf2; /* rgb */ color: rgb(121, 108, 242); /* oklch */ color: oklch(61.2% 0.194 283.5);
Tailwind
colors: {
custom: {
50: '#a896f7',
500: '#796cf2',
950: '#000000',
},
}SCSS
$custom: #796cf2; $custom-light: #a896f7; $custom-dark: #000000;
JSON
{
"hex": "#796cf2",
"rgb": {
"r": 121,
"g": 108,
"b": 242
},
"hsl": {
"h": 245.821,
"s": 83.75,
"l": 68.627
},
"oklch": {
"l": 0.61239,
"c": 0.19399,
"h": 283.5
},
"luminance": 0.21201
}Semantic roles & 50–950 ramp
primary
#796CF2
secondary
#EDF1C9
accent
#E005CB
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85