#A2AF21

A color in the Yellow, Gold family

#a2af21 is a color in the Yellow, Gold family: RGB(162, 175, 33), HSL(65°, 68%, 41%), CMYK(7%, 0%, 81%, 31%). Closest named color: darkkhaki. Contrast is 2.42:1 on white and 8.69:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#a2af21
RGBrgb(162 175 33)
RGB (legacy)rgb(162, 175, 33)
RGB %rgb(64% 69% 13%)
HSLhsl(65 68% 41%)
HSV / HSBhsv(65, 81%, 69%)
HWBhwb(65 13% 31%)
CMYKcmyk(7%, 0%, 81%, 31%)
CIELAB (D50)lab(68.65 -16.98 63.64)
LCHlch(68.65 65.87 104.94)
OKLaboklab(0.7199 -0.0655 0.1396)
OKLCHoklch(0.7199 0.1542 115.13)
Decimal10661665

Properties

Color ToneYellow, Gold
Closest named colordarkkhaki ΔE 7.7
Closest web-safe color#999933
Hue65°
Saturation (HSL / HSV)68% / 81%
Lightness (HSL)41%
Brightness or Value (HSV)69%
Luminance (Rec.601 / Rec.709)61% / 64%
Relative luminance (WCAG)0.3845
Red / Green / Blue162 / 175 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.42:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
8.69:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 47.4 / -54.6 · As background with white / black text: Lc -52.4 / 56.6

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #a2af21;
  --color-brand-oklch: oklch(71.99% 0.1542 115.13);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(162 175 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#a2af21] text-[#a2af21] border-[#a2af21]">