#796FC2#796FC2
#796FC2 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.8% C 0.125 H 287.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #796FC2 |
|---|---|
| RGB | rgb(121, 111, 194) |
| HSL | hsl(247, 40%, 60%) |
| HSV | hsv(247, 43%, 76%) |
| CMYK | cmyk(37.6%, 42.8%, 0%, 23.9%) |
| CIE-LAB | lab(51.07, 23.86, -42.21) |
| CIE-LCH | lch(51.07, 48.49, 299.47°) |
| OKLab | oklab(58.76% 0.0374 -0.1189) |
| OKLCH | oklch(58.76% 0.125 287.4) |
| XYZ | xyz(23.3045, 19.3282, 53.5313) |
| Luminance | 0.1933 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumpurple
#9370DB
ΔE00 6.35
Dark Periwinkle
#665FD1
ΔE00 6.85
Mediumslateblue
#7B68EE
ΔE00 7.14
Deep Lilac
#966EBD
ΔE00 7.46
Light Indigo
#6D5ACF
ΔE00 7.52
Slate Blue
#6A5ACD
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796FC2 #B8C26F
analogous
#6F8FC2 #796FC2 #A36FC2
triadic
#796FC2 #C2796F #6FC279
tetradic
#796FC2 #C26F8F #B8C26F #6FC2A3
square
#796FC2 #C26F8F #B8C26F #6FC2A3
split-complementary
#796FC2 #C2A36F #8FC26F
monochromatic
#3F3680 #5449AB #796FC2 #A19AD4 #C9C5E6
Accessibility & contrast
On white
4.32
#796FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#796FC2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796FC2
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796FC2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796FC2 | 1.00 | 4.32 | 4.87 | 4.87 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#537CC5
Deuteranopia (green-blind)
#5277C0
Tritanopia (blue-blind)
#657F8F
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #796fc2; /* rgb */ color: rgb(121, 111, 194); /* oklch */ color: oklch(58.8% 0.125 287.4);
Tailwind
colors: {
custom: {
50: '#a398d5',
500: '#796fc2',
950: '#000000',
},
}SCSS
$custom: #796fc2; $custom-light: #a398d5; $custom-dark: #000000;
JSON
{
"hex": "#796fc2",
"rgb": {
"r": 121,
"g": 111,
"b": 194
},
"hsl": {
"h": 247.229,
"s": 40.488,
"l": 59.804
},
"oklch": {
"l": 0.58758,
"c": 0.12459,
"h": 287.4
},
"luminance": 0.19329
}Semantic roles & 50–950 ramp
primary
#796FC2
secondary
#D3D6B6
accent
#D057C2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83