#A9A221#A9A221

#A9A221 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.7% C 0.140 H 106.2°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#A9A221
RGBrgb(169, 162, 33)
HSLhsl(57, 67%, 40%)
HSVhsv(57, 80%, 66%)
CMYKcmyk(0%, 4.1%, 80.5%, 33.7%)
CIE-LABlab(65.27, -11.54, 61.88)
CIE-LCHlch(65.27, 62.94, 100.56°)
OKLaboklab(69.66% -0.0389 0.134)
OKLCHoklch(69.66% 0.14 106.2)
XYZxyz(29.5583, 34.3866, 6.5188)
Luminance0.3438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A9A221 #2128A9
analogous
#A95E21 #A9A221 #6CA921
triadic
#A9A221 #21A9A2 #A221A9
tetradic
#A9A221 #21A95E #2128A9 #A9216C
square
#A9A221 #21A95E #2128A9 #A9216C
split-complementary
#A9A221 #216CA9 #5E21A9
monochromatic
#43400D #767117 #A9A221 #D7CE31 #E1DA64

Accessibility & contrast

On white

2.67
#A9A221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#A9A221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A9A221
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A9A221#FFFFFF#000000##000000
##A9A2211.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B3A12C
Tritanopia (blue-blind)
#B6978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a9a221;
/* rgb */ color: rgb(169, 162, 33);
/* oklch */ color: oklch(69.7% 0.140 106.2);
Tailwind
colors: {
  custom: {
    50: '#c6bd69',
    500: '#a9a221',
    950: '#000000',
  },
}
SCSS
$custom: #a9a221;
$custom-light: #c6bd69;
$custom-dark: #000000;
JSON
{
  "hex": "#a9a221",
  "rgb": {
    "r": 169,
    "g": 162,
    "b": 33
  },
  "hsl": {
    "h": 56.912,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.69664,
    "c": 0.13955,
    "h": 106.2
  },
  "luminance": 0.34385
}

Semantic roles & 50–950 ramp

primary
#A9A221
secondary
#6065C6
accent
#46EA3E
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#141207
muted
#82817A

Preview Lab

Preview with #A9A221

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#A9A221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva