#9FAF28 color
The hex color #9FAF28 is a moderate yellow.
In the RGB color model it is made of 62.4% red, 68.6% green and 15.7% blue (159, 175, 40).
Its hue angle is 67°, with 63% saturation and 42% lightness. For print, the CMYK equivalent is 9% cyan, 0% magenta, 77% yellow and 31% black.
The closest named color is Citrus (#9FB70A), a difference of 2.9 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 8.64:1).
#9FAF28 color codes
| HEX | #9FAF28 | |
|---|---|---|
| RGB | rgb(159, 175, 40) | |
| RGB percent | rgb(62.4%, 68.6%, 15.7%) | |
| HSL | hsl(67, 63%, 42%) | |
| HSV / HSB | hsv(67, 77%, 69%) | |
| CMYK | cmyk(9%, 0%, 77%, 31%) | |
| CIE LAB | lab(68.16, -22.27, 62.05) | |
| CIE LCH | lch(68.16, 65.92, 109.74) | |
| CIE XYZ | xyz(30.012, 38.184, 7.796) | |
| Decimal | 10465064 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9FAF28, 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 #9FAF28 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.64:1 | Pass | Pass | Pass |
| Sample text | 2.43:1 | Fail | Fail | Fail |
| #9FAF28 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.43:1 | Fail | Fail | Fail |
| Sample text | 8.64: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 #9FAF28 looks to people with the most common types of color vision deficiency.
#bba601Protanopia
no red cones#baa734Deuteranopia
no green cones#a9a596Tritanopia
no blue cones#a6a6a6Achromatopsia
no color vision
CSS examples
.background { background-color: #9faf28; }
.text { color: #9faf28; }
.border { border: 2px solid #9faf28; }
.transparent { background-color: rgb(159 175 40 / 50%); }
.gradient { background: linear-gradient(to right, #9faf28, #5caf28); }
Similar colors
#9fb70aCitrus#90aa0bAugustus Asparagus#afbb33Lush Bamboo#8bac0fGameboy Screen#aabb11Leafy Woodland#97b73aLimolicious#99bb33Machu Picchu Gardens#a4bf20Pea
Closest common color name: Yellow Green.
Questions
- What color is #9FAF28?
- #9FAF28 is a moderate yellow, closest to the named color Citrus. It belongs to the yellow family of colors.
- What is the RGB value of #9FAF28?
- The RGB value is 159, 175, 40: 159 red, 175 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #9FAF28?
- The complementary color is #3828AF, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9FAF28?
- Black text. Black text has a contrast ratio of 8.64:1 and white text 2.43:1. WCAG asks for at least 4.5:1 for normal text.