#797FA5 color
The hex color #797FA5 is a grayish blue.
In the RGB color model it is made of 47.5% red, 49.8% green and 64.7% blue (121, 127, 165).
Its hue angle is 232°, with 20% saturation and 56% lightness. For print, the CMYK equivalent is 27% cyan, 23% magenta, 0% yellow and 35% black.
The closest named color is Stormy Horizon (#777799), a difference of 3.7 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 5.39:1).
#797FA5 color codes
| HEX | #797FA5 | |
|---|---|---|
| RGB | rgb(121, 127, 165) | |
| RGB percent | rgb(47.5%, 49.8%, 64.7%) | |
| HSL | hsl(232, 20%, 56%) | |
| HSV / HSB | hsv(232, 27%, 65%) | |
| CMYK | cmyk(27%, 23%, 0%, 35%) | |
| CIE LAB | lab(53.98, 6.56, -20.95) | |
| CIE LCH | lch(53.98, 21.96, 287.39) | |
| CIE XYZ | xyz(22.264, 21.96, 38.656) | |
| Decimal | 7962533 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #797FA5, 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 #797FA5 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.39:1 | Pass | Fail | Pass |
| Sample text | 3.89:1 | Fail | Fail | Pass |
| #797FA5 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.89:1 | Fail | Fail | Pass |
| Sample text | 5.39: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 #797FA5 looks to people with the most common types of color vision deficiency.
#7483a7Protanopia
no red cones#7280a4Deuteranopia
no green cones#6e868cTritanopia
no blue cones#818181Achromatopsia
no color vision
CSS examples
.background { background-color: #797fa5; }
.text { color: #797fa5; }
.border { border: 2px solid #797fa5; }
.transparent { background-color: rgb(121 127 165 / 50%); }
.gradient { background: linear-gradient(to right, #797fa5, #8979a5); }
Similar colors
#777799Stormy Horizon#7181a4English Manor#7f8cb8Galactic Gossamer#79839bTempest#74819aStonewash#867ba9Aster#787e93Your Shadow#65769aMisty Harbour
Closest common color name: Cool Gray.
Questions
- What color is #797FA5?
- #797FA5 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 #797FA5?
- The RGB value is 121, 127, 165: 121 red, 127 green and 165 blue on a 0 to 255 scale.
- What is the complementary color of #797FA5?
- The complementary color is #A59F79, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #797FA5?
- Black text. Black text has a contrast ratio of 5.39:1 and white text 3.89:1. WCAG asks for at least 4.5:1 for normal text.