#C9A228#C9A228

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

Color values

HEX#C9A228
RGBrgb(201, 162, 40)
HSLhsl(45, 67%, 47%)
HSVhsv(45, 80%, 79%)
CMYKcmyk(0%, 19.4%, 80.1%, 21.2%)
CIE-LABlab(68.32, 2.90, 63.58)
CIE-LCHlch(68.32, 63.64, 87.39°)
OKLaboklab(72.81% 0.0009 0.1375)
OKLCHoklch(72.81% 0.138 89.6)
XYZxyz(37.3930, 38.4138, 7.4522)
Luminance0.3841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9A228 #284FC9
analogous
#C95228 #C9A228 #9FC928
triadic
#C9A228 #28C9A2 #A228C9
tetradic
#C9A228 #28C952 #284FC9 #C9289F
square
#C9A228 #28C952 #284FC9 #C9289F
split-complementary
#C9A228 #289FC9 #5228C9
monochromatic
#635014 #96791E #C9A228 #DDBB52 #E7CF85

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C9A228#FFFFFF#000000##000000
##C9A2281.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)
#B5A009
Deuteranopia (green-blind)
#BFAB30
Tritanopia (blue-blind)
#DA938B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c9a228;
/* rgb */ color: rgb(201, 162, 40);
/* oklch */ color: oklch(72.8% 0.138 89.6);
Tailwind
colors: {
  custom: {
    50: '#debd6d',
    500: '#c9a228',
    950: '#000000',
  },
}
SCSS
$custom: #c9a228;
$custom-light: #debd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#c9a228",
  "rgb": {
    "r": 201,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 45.466,
    "s": 66.805,
    "l": 47.255
  },
  "oklch": {
    "l": 0.72806,
    "c": 0.13751,
    "h": 89.6
  },
  "luminance": 0.38411
}

Semantic roles & 50–950 ramp

primary
#C9A228
secondary
#7D91D0
accent
#68EA3E
background
#FEFBF6
surface
#FCF6EC
border
#D5D0C7
text
#161208
muted
#84817B

Preview Lab

Preview with #C9A228

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

Preview Lab → · Contrast checker → · Palette generator →

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