#9797B5 color
The hex color #9797B5 is a light, grayish blue.
In the RGB color model it is made of 59.2% red, 59.2% green and 71% blue (151, 151, 181).
Its hue angle is 240°, with 17% saturation and 65% lightness. For print, the CMYK equivalent is 17% cyan, 17% magenta, 0% yellow and 29% black.
The closest named color is Cool Gray (#8C92AC), a difference of 3.8 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 7.41:1).
#9797B5 color codes
| HEX | #9797B5 | |
|---|---|---|
| RGB | rgb(151, 151, 181) | |
| RGB percent | rgb(59.2%, 59.2%, 71%) | |
| HSL | hsl(240, 17%, 65%) | |
| HSV / HSB | hsv(240, 17%, 71%) | |
| CMYK | cmyk(17%, 17%, 0%, 29%) | |
| CIE LAB | lab(63.38, 6.27, -15.56) | |
| CIE LCH | lch(63.38, 16.78, 291.97) | |
| CIE XYZ | xyz(32.168, 32.048, 48.198) | |
| Decimal | 9934773 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9797B5, 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 #9797B5 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.41:1 | Pass | Pass | Pass |
| Sample text | 2.83:1 | Fail | Fail | Fail |
| #9797B5 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.83:1 | Fail | Fail | Fail |
| Sample text | 7.41:1 | Pass | Pass | 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 #9797B5 looks to people with the most common types of color vision deficiency.
#909ab6Protanopia
no red cones#8f99b4Deuteranopia
no green cones#919ca1Tritanopia
no blue cones#999999Achromatopsia
no color vision
CSS examples
.background { background-color: #9797b5; }
.text { color: #9797b5; }
.border { border: 2px solid #9797b5; }
.transparent { background-color: rgb(151 151 181 / 50%); }
.gradient { background: linear-gradient(to right, #9797b5, #a697b5); }
Similar colors
#8c92acCool Gray#9999aaMachinery#8d95aaSilverfish#9998a7Lavender Ash#8e97c7Easter Egg#8d99b1Moon Veil#9596a4Too Big to Whale#a090b8Wizard’s Brew
Questions
- What color is #9797B5?
- #9797B5 is a light, grayish blue, closest to the named color Cool Gray. It belongs to the blue family of colors.
- What is the RGB value of #9797B5?
- The RGB value is 151, 151, 181: 151 red, 151 green and 181 blue on a 0 to 255 scale.
- What is the complementary color of #9797B5?
- The complementary color is #B5B597, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9797B5?
- Black text. Black text has a contrast ratio of 7.41:1 and white text 2.83:1. WCAG asks for at least 4.5:1 for normal text.