#AFAF0B color

#AFAF0B rgb(175, 175, 11)
Shades of yellow

The hex color #AFAF0B is a dark, vivid yellow.

In the RGB color model it is made of 68.6% red, 68.6% green and 4.3% blue (175, 175, 11).

Its hue angle is 60°, with 88% saturation and 36% lightness. For print, the CMYK equivalent is 0% cyan, 0% magenta, 94% yellow and 31% black.

The closest named color is Honey and Thyme (#AAAA00), a difference of 1.4 ΔE, which is barely visible.

Black text is the more readable choice on this background (contrast 8.96:1).

#AFAF0B color codes

HEX#AFAF0B
RGBrgb(175, 175, 11)
RGB percentrgb(68.6%, 68.6%, 4.3%)
HSLhsl(60, 88%, 36%)
HSV / HSBhsv(60, 94%, 69%)
CMYKcmyk(0%, 0%, 94%, 31%)
CIE LABlab(69.33, -16.11, 69.94)
CIE LCHlch(69.33, 71.77, 102.97)
CIE XYZxyz(33.071, 39.799, 6.256)
Decimal11513611
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #AFAF0B, 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 #AFAF0BRatioAAAAAAA large
Sample text8.96:1PassPassPass
Sample text2.34:1FailFailFail
#AFAF0B as text onRatioAAAAAAA large
Sample text2.34:1FailFailFail
Sample text8.96:1PassPassPass

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 #AFAF0B looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #afaf0b; }
.text { color: #afaf0b; }
.border { border: 2px solid #afaf0b; }
.transparent { background-color: rgb(175 175 11 / 50%); }
.gradient { background: linear-gradient(to right, #afaf0b, #5daf0b); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Khaki.

Questions

What color is #AFAF0B?
#AFAF0B is a dark, vivid yellow, closest to the named color Honey and Thyme. It belongs to the yellow family of colors.
What is the RGB value of #AFAF0B?
The RGB value is 175, 175, 11: 175 red, 175 green and 11 blue on a 0 to 255 scale.
What is the complementary color of #AFAF0B?
The complementary color is #0B0BAF, found by rotating the hue 180° on the color wheel.
Is black or white text better on #AFAF0B?
Black text. Black text has a contrast ratio of 8.96:1 and white text 2.34:1. WCAG asks for at least 4.5:1 for normal text.