#C9B22F#C9B22F

#C9B22F is a light, vivid yellow. Relative luminance 0.445; OKLCH L 76.1% C 0.144 H 98.7°. Best body text is #000000 at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#C9B22F
RGBrgb(201, 178, 47)
HSLhsl(51, 62%, 49%)
HSVhsv(51, 77%, 79%)
CMYKcmyk(0%, 11.4%, 76.6%, 21.2%)
CIE-LABlab(72.54, -5.31, 65.09)
CIE-LCHlch(72.54, 65.31, 94.67°)
OKLaboklab(76.15% -0.0218 0.1422)
OKLCHoklch(76.15% 0.144 98.7)
XYZxyz(40.5229, 44.4656, 9.1370)
Luminance0.4446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9B22F #2F46C9
analogous
#C9652F #C9B22F #93C92F
triadic
#C9B22F #2FC9B2 #B22FC9
tetradic
#C9B22F #2FC965 #2F46C9 #C92F93
square
#C9B22F #2FC965 #2F46C9 #C92F93
split-complementary
#C9B22F #2F93C9 #652FC9
monochromatic
#665A18 #978623 #C9B22F #D9C65C #E5D88E

Accessibility & contrast

On white

2.12
#C9B22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.89
#C9B22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9B22F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9B22F#FFFFFF#000000##000000
##C9B22F1.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD12
Deuteranopia (green-blind)
#CAB538
Tritanopia (blue-blind)
#D9A499
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c9b22f;
/* rgb */ color: rgb(201, 178, 47);
/* oklch */ color: oklch(76.1% 0.144 98.7);
Tailwind
colors: {
  custom: {
    50: '#dec872',
    500: '#c9b22f',
    950: '#000000',
  },
}
SCSS
$custom: #c9b22f;
$custom-light: #dec872;
$custom-dark: #000000;
JSON
{
  "hex": "#c9b22f",
  "rgb": {
    "r": 201,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 51.039,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.76148,
    "c": 0.14385,
    "h": 98.7
  },
  "luminance": 0.44464
}

Semantic roles & 50–950 ramp

primary
#C9B22F
secondary
#8590CF
accent
#5BE543
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #C9B22F

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

Preview Lab → · Contrast checker → · Palette generator →

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