#A9A21F#A9A21F

#A9A21F 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.87:1 contrast (WCAG AA passes).

Color values

HEX#A9A21F
RGBrgb(169, 162, 31)
HSLhsl(57, 69%, 39%)
HSVhsv(57, 82%, 66%)
CMYKcmyk(0%, 4.1%, 81.7%, 33.7%)
CIE-LABlab(65.26, -11.61, 62.44)
CIE-LCHlch(65.26, 63.51, 100.53°)
OKLaboklab(69.65% -0.0393 0.1349)
OKLCHoklch(69.65% 0.14 106.2)
XYZxyz(29.5311, 34.3757, 6.3757)
Luminance0.3438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A9A21F #1F26A9
analogous
#A95D1F #A9A21F #6BA91F
triadic
#A9A21F #1FA9A2 #A21FA9
tetradic
#A9A21F #1FA95D #1F26A9 #A91F6B
square
#A9A21F #1FA95D #1F26A9 #A91F6B
split-complementary
#A9A21F #1F6BA9 #5D1FA9
monochromatic
#423F0C #757016 #A9A21F #D8D02D #E2DB60

Accessibility & contrast

On white

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

On black

7.87
#A9A21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A9A21F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A9A21F#FFFFFF#000000##000000
##A9A21F1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a9a21f;
/* rgb */ color: rgb(169, 162, 31);
/* oklch */ color: oklch(69.7% 0.140 106.2);
Tailwind
colors: {
  custom: {
    50: '#c7bd68',
    500: '#a9a21f',
    950: '#000000',
  },
}
SCSS
$custom: #a9a21f;
$custom-light: #c7bd68;
$custom-dark: #000000;
JSON
{
  "hex": "#a9a21f",
  "rgb": {
    "r": 169,
    "g": 162,
    "b": 31
  },
  "hsl": {
    "h": 56.957,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.69654,
    "c": 0.14045,
    "h": 106.2
  },
  "luminance": 0.34375
}

Semantic roles & 50–950 ramp

primary
#A9A21F
secondary
#5D63C7
accent
#45EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#141207
muted
#82817A

Preview Lab

Preview with #A9A21F

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

Preview Lab → · Contrast checker → · Palette generator →

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