#797BA5 color
The hex color #797BA5 is a grayish blue.
In the RGB color model it is made of 47.5% red, 48.2% green and 64.7% blue (121, 123, 165).
Its hue angle is 237°, with 20% saturation and 56% lightness. For print, the CMYK equivalent is 27% cyan, 25% magenta, 0% yellow and 35% black.
The closest named color is Stormy Horizon (#777799), a difference of 3 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 5.19:1).
#797BA5 color codes
| HEX | #797BA5 | |
|---|---|---|
| RGB | rgb(121, 123, 165) | |
| RGB percent | rgb(47.5%, 48.2%, 64.7%) | |
| HSL | hsl(237, 20%, 56%) | |
| HSV / HSB | hsv(237, 27%, 65%) | |
| CMYK | cmyk(27%, 25%, 0%, 35%) | |
| CIE LAB | lab(52.89, 8.92, -22.63) | |
| CIE LCH | lch(52.89, 24.33, 291.51) | |
| CIE XYZ | xyz(21.758, 20.947, 38.487) | |
| Decimal | 7961509 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #797BA5, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #797BA5 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.19:1 | Pass | Fail | Pass |
| Sample text | 4.05:1 | Fail | Fail | Pass |
| #797BA5 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.05:1 | Fail | Fail | Pass |
| Sample text | 5.19:1 | Pass | Fail | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #797BA5 looks to people with the most common types of color vision deficiency.
#7080a7Protanopia
no red cones#6e7da4Deuteranopia
no green cones#6f828aTritanopia
no blue cones#7e7e7eAchromatopsia
no color vision
CSS examples
.background { background-color: #797ba5; }
.text { color: #797ba5; }
.border { border: 2px solid #797ba5; }
.transparent { background-color: rgb(121 123 165 / 50%); }
.gradient { background: linear-gradient(to right, #797ba5, #8d79a5); }
Similar colors
#777799Stormy Horizon#867ba9Aster#7181a4English Manor#807396Purple Haze#65769aMisty Harbour#7f8cb8Galactic Gossamer#746c8fBureaucracy#79839bTempest
Closest common color name: Lavender Purple.
Questions
- What color is #797BA5?
- #797BA5 is a grayish blue, closest to the named color Stormy Horizon. It belongs to the blue family of colors.
- What is the RGB value of #797BA5?
- The RGB value is 121, 123, 165: 121 red, 123 green and 165 blue on a 0 to 255 scale.
- What is the complementary color of #797BA5?
- The complementary color is #A5A379, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #797BA5?
- Black text. Black text has a contrast ratio of 5.19:1 and white text 4.05:1. WCAG asks for at least 4.5:1 for normal text.