#797998 color
The hex color #797998 is a grayish blue.
In the RGB color model it is made of 47.5% red, 47.5% green and 59.6% blue (121, 121, 152).
Its hue angle is 240°, with 13% saturation and 54% lightness. For print, the CMYK equivalent is 20% cyan, 20% magenta, 0% yellow and 40% black.
The closest named color is Stormy Horizon (#777799), a difference of 1.2 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 5:1).
#797998 color codes
| HEX | #797998 | |
|---|---|---|
| RGB | rgb(121, 121, 152) | |
| RGB percent | rgb(47.5%, 47.5%, 59.6%) | |
| HSL | hsl(240, 13%, 54%) | |
| HSV / HSB | hsv(240, 20%, 60%) | |
| CMYK | cmyk(20%, 20%, 0%, 40%) | |
| CIE LAB | lab(51.84, 6.88, -16.67) | |
| CIE LCH | lch(51.84, 18.03, 292.42) | |
| CIE XYZ | xyz(20.389, 20.006, 32.487) | |
| Decimal | 7960984 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #797998, 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 #797998 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5:1 | Pass | Fail | Pass |
| Sample text | 4.2:1 | Fail | Fail | Pass |
| #797998 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.2:1 | Fail | Fail | Pass |
| Sample text | 5: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 #797998 looks to people with the most common types of color vision deficiency.
#717d99Protanopia
no red cones#707b97Deuteranopia
no green cones#727e83Tritanopia
no blue cones#7c7c7cAchromatopsia
no color vision
CSS examples
.background { background-color: #797998; }
.text { color: #797998; }
.border { border: 2px solid #797998; }
.transparent { background-color: rgb(121 121 152 / 50%); }
.gradient { background: linear-gradient(to right, #797998, #897998); }
Similar colors
#777799Stormy Horizon#787489Flying Carpet#807396Purple Haze#787e93Your Shadow#6b6c89Dark Prince#746c8fBureaucracy#867ba9Aster#847592Vintage
Closest common color name: Cool Gray.
Questions
- What color is #797998?
- #797998 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 #797998?
- The RGB value is 121, 121, 152: 121 red, 121 green and 152 blue on a 0 to 255 scale.
- What is the complementary color of #797998?
- The complementary color is #989879, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #797998?
- Black text. Black text has a contrast ratio of 5:1 and white text 4.2:1. WCAG asks for at least 4.5:1 for normal text.