#797A9F color
The hex color #797A9F is a grayish blue.
In the RGB color model it is made of 47.5% red, 47.8% green and 62.4% blue (121, 122, 159).
Its hue angle is 238°, with 17% saturation and 55% lightness. For print, the CMYK equivalent is 24% cyan, 23% magenta, 0% yellow and 38% black.
The closest named color is Stormy Horizon (#777799), a difference of 1.5 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 5.1:1).
#797A9F color codes
| HEX | #797A9F | |
|---|---|---|
| RGB | rgb(121, 122, 159) | |
| RGB percent | rgb(47.5%, 47.8%, 62.4%) | |
| HSL | hsl(238, 17%, 55%) | |
| HSV / HSB | hsv(238, 24%, 62%) | |
| CMYK | cmyk(24%, 23%, 0%, 38%) | |
| CIE LAB | lab(52.38, 8, -19.93) | |
| CIE LCH | lch(52.38, 21.47, 291.87) | |
| CIE XYZ | xyz(21.101, 20.487, 35.637) | |
| Decimal | 7961247 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #797A9F, 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 #797A9F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.1:1 | Pass | Fail | Pass |
| Sample text | 4.12:1 | Fail | Fail | Pass |
| #797A9F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.12:1 | Fail | Fail | Pass |
| Sample text | 5.1: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 #797A9F looks to people with the most common types of color vision deficiency.
#707ea1Protanopia
no red cones#6f7c9eDeuteranopia
no green cones#708087Tritanopia
no blue cones#7d7d7dAchromatopsia
no color vision
CSS examples
.background { background-color: #797a9f; }
.text { color: #797a9f; }
.border { border: 2px solid #797a9f; }
.transparent { background-color: rgb(121 122 159 / 50%); }
.gradient { background: linear-gradient(to right, #797a9f, #8b799f); }
Similar colors
#777799Stormy Horizon#867ba9Aster#807396Purple Haze#7181a4English Manor#746c8fBureaucracy#787489Flying Carpet#787e93Your Shadow#6b6c89Dark Prince
Closest common color name: Lavender Purple.
Questions
- What color is #797A9F?
- #797A9F 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 #797A9F?
- The RGB value is 121, 122, 159: 121 red, 122 green and 159 blue on a 0 to 255 scale.
- What is the complementary color of #797A9F?
- The complementary color is #9F9E79, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #797A9F?
- Black text. Black text has a contrast ratio of 5.1:1 and white text 4.12:1. WCAG asks for at least 4.5:1 for normal text.