#C9A22A#C9A22A

#C9A22A is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.8% C 0.137 H 89.5°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#C9A22A
RGBrgb(201, 162, 42)
HSLhsl(45, 65%, 48%)
HSVhsv(45, 79%, 79%)
CMYKcmyk(0%, 19.4%, 79.1%, 21.2%)
CIE-LABlab(68.33, 2.97, 62.93)
CIE-LCHlch(68.33, 63.00, 87.30°)
OKLaboklab(72.82% 0.0012 0.1365)
OKLCHoklch(72.82% 0.137 89.5)
XYZxyz(37.4279, 38.4278, 7.6360)
Luminance0.3842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9A22A #2A51C9
analogous
#C9522A #C9A22A #A0C92A
triadic
#C9A22A #2AC9A2 #A22AC9
tetradic
#C9A22A #2AC952 #2A51C9 #C92AA0
square
#C9A22A #2AC952 #2A51C9 #C92AA0
split-complementary
#C9A22A #2AA0C9 #522AC9
monochromatic
#645015 #96791F #C9A22A #DBBA55 #E6CF87

Accessibility & contrast

On white

2.42
#C9A22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#C9A22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9A22A
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9A22A#FFFFFF#000000##000000
##C9A22A1.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A00F
Deuteranopia (green-blind)
#BFAB31
Tritanopia (blue-blind)
#DA938B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c9a22a;
/* rgb */ color: rgb(201, 162, 42);
/* oklch */ color: oklch(72.8% 0.137 89.5);
Tailwind
colors: {
  custom: {
    50: '#debd6e',
    500: '#c9a22a',
    950: '#000000',
  },
}
SCSS
$custom: #c9a22a;
$custom-light: #debd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#c9a22a",
  "rgb": {
    "r": 201,
    "g": 162,
    "b": 42
  },
  "hsl": {
    "h": 45.283,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.72817,
    "c": 0.13654,
    "h": 89.5
  },
  "luminance": 0.38425
}

Semantic roles & 50–950 ramp

primary
#C9A22A
secondary
#7F93D0
accent
#69E83F
background
#FEFBF6
surface
#FCF6EC
border
#D5D0C7
text
#161208
muted
#84817B

Preview Lab

Preview with #C9A22A

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

Preview Lab → · Contrast checker → · Palette generator →

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