#C9AF2F#C9AF2F

#C9AF2F is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.5% C 0.142 H 97.0°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#C9AF2F
RGBrgb(201, 175, 47)
HSLhsl(50, 62%, 49%)
HSVhsv(50, 77%, 79%)
CMYKcmyk(0%, 12.9%, 76.6%, 21.2%)
CIE-LABlab(71.75, -3.74, 64.36)
CIE-LCHlch(71.75, 64.47, 93.33°)
OKLaboklab(75.52% -0.0174 0.1406)
OKLCHoklch(75.52% 0.142 97)
XYZxyz(39.9325, 43.2848, 8.9402)
Luminance0.4328 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9AF2F #2F49C9
analogous
#C9622F #C9AF2F #96C92F
triadic
#C9AF2F #2FC9AF #AF2FC9
tetradic
#C9AF2F #2FC962 #2F49C9 #C92F96
square
#C9AF2F #2FC962 #2F49C9 #C92F96
split-complementary
#C9AF2F #2F96C9 #622FC9
monochromatic
#665918 #978423 #C9AF2F #D9C45C #E5D68E

Accessibility & contrast

On white

2.17
#C9AF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#C9AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9AF2F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9AF2F#FFFFFF#000000##000000
##C9AF2F1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB14
Deuteranopia (green-blind)
#C8B338
Tritanopia (blue-blind)
#D9A197
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #c9af2f;
/* rgb */ color: rgb(201, 175, 47);
/* oklch */ color: oklch(75.5% 0.142 97.0);
Tailwind
colors: {
  custom: {
    50: '#dec672',
    500: '#c9af2f',
    950: '#000000',
  },
}
SCSS
$custom: #c9af2f;
$custom-light: #dec672;
$custom-dark: #000000;
JSON
{
  "hex": "#c9af2f",
  "rgb": {
    "r": 201,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 49.87,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.75522,
    "c": 0.1417,
    "h": 97
  },
  "luminance": 0.43283
}

Semantic roles & 50–950 ramp

primary
#C9AF2F
secondary
#8591CF
accent
#5EE543
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C9AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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