#5B5F40 color
The hex color #5B5F40 is a dark, grayish yellow.
In the RGB color model it is made of 35.7% red, 37.3% green and 25.1% blue (91, 95, 64).
Its hue angle is 68°, with 19% saturation and 31% lightness. For print, the CMYK equivalent is 4% cyan, 0% magenta, 33% yellow and 63% black.
The closest named color is Cypress (#585D40), a difference of 1.1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 6.65:1).
#5B5F40 color codes
| HEX | #5B5F40 | |
|---|---|---|
| RGB | rgb(91, 95, 64) | |
| RGB percent | rgb(35.7%, 37.3%, 25.1%) | |
| HSL | hsl(68, 19%, 31%) | |
| HSV / HSB | hsv(68, 33%, 37%) | |
| CMYK | cmyk(4%, 0%, 33%, 63%) | |
| CIE LAB | lab(39.21, -7.29, 17.26) | |
| CIE LCH | lch(39.21, 18.74, 112.89) | |
| CIE XYZ | xyz(9.332, 10.779, 6.438) | |
| Decimal | 5988160 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5B5F40, 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 #5B5F40 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.16:1 | Fail | Fail | Pass |
| Sample text | 6.65:1 | Pass | Fail | Pass |
| #5B5F40 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.65:1 | Pass | Fail | Pass |
| Sample text | 3.16:1 | Fail | 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 #5B5F40 looks to people with the most common types of color vision deficiency.
#635c3eProtanopia
no red cones#635d41Deuteranopia
no green cones#5f5c57Tritanopia
no blue cones#5c5c5cAchromatopsia
no color vision
CSS examples
.background { background-color: #5b5f40; }
.text { color: #5b5f40; }
.border { border: 2px solid #5b5f40; }
.transparent { background-color: rgb(91 95 64 / 50%); }
.gradient { background: linear-gradient(to right, #5b5f40, #4c5f40); }
Similar colors
#585d40Cypress#595d45Tree of Life#5f674bMonstera#666a47Bancha#696845Eat Your Greens#4b5338Broccoli Green#6b6d4eHerbal Whispers#616c51Hinterland
Closest common color name: Ebony.
Questions
- What color is #5B5F40?
- #5B5F40 is a dark, grayish yellow, closest to the named color Cypress. It belongs to the yellow family of colors.
- What is the RGB value of #5B5F40?
- The RGB value is 91, 95, 64: 91 red, 95 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #5B5F40?
- The complementary color is #44405F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5B5F40?
- White text. Black text has a contrast ratio of 3.16:1 and white text 6.65:1. WCAG asks for at least 4.5:1 for normal text.