#796CD8#796CD8
#796CD8 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.5% C 0.160 H 286.0°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #796CD8 |
|---|---|
| RGB | rgb(121, 108, 216) |
| HSL | hsl(247, 58%, 64%) |
| HSV | hsv(247, 50%, 85%) |
| CMYK | cmyk(44%, 50%, 0%, 15.3%) |
| CIE-LAB | lab(51.55, 31.90, -54.00) |
| CIE-LCH | lch(51.55, 62.72, 300.58°) |
| OKLab | oklab(59.52% 0.0439 -0.1534) |
| OKLCH | oklch(59.52% 0.16 286) |
| XYZ | xyz(25.6388, 19.7469, 67.4131) |
| Luminance | 0.1975 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.35
Dark Periwinkle
#665FD1
ΔE00 5.28
Mediumpurple
#9370DB
ΔE00 5.38
Light Indigo
#6D5ACF
ΔE00 6.08
Slate Blue
#6A5ACD
ΔE00 6.33
Purpley
#8756E4
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796CD8 #CBD86C
analogous
#6C95D8 #796CD8 #AF6CD8
triadic
#796CD8 #D8796C #6CD879
tetradic
#796CD8 #D86C95 #CBD86C #6CD8AF
square
#796CD8 #D86C95 #CBD86C #6CD8AF
split-complementary
#796CD8 #D8AF6C #95D86C
monochromatic
#382A9F #4D3CCB #796CD8 #A59CE5 #D1CDF2
Accessibility & contrast
On white
4.24
#796CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.95
#796CD8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796CD8
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796CD8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796CD8 | 1.00 | 4.24 | 4.95 | 4.95 |
| #FFFFFF | 4.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D7EDC
Deuteranopia (green-blind)
#3A78D6
Tritanopia (blue-blind)
#5B8398
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #796cd8; /* rgb */ color: rgb(121, 108, 216); /* oklch */ color: oklch(59.5% 0.160 286.0);
Tailwind
colors: {
custom: {
50: '#a596e5',
500: '#796cd8',
950: '#000000',
},
}SCSS
$custom: #796cd8; $custom-light: #a596e5; $custom-dark: #000000;
JSON
{
"hex": "#796cd8",
"rgb": {
"r": 121,
"g": 108,
"b": 216
},
"hsl": {
"h": 247.222,
"s": 58.065,
"l": 63.529
},
"oklch": {
"l": 0.59516,
"c": 0.15953,
"h": 286
},
"luminance": 0.19748
}Semantic roles & 50–950 ramp
primary
#796CD8
secondary
#DEE3BD
accent
#C620B2
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84