#C9C02F#C9C02F

#C9C02F is a light, vivid yellow. Relative luminance 0.503; OKLCH L 79.1% C 0.155 H 105.7°. Best body text is #000000 at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#C9C02F
RGBrgb(201, 192, 47)
HSLhsl(56, 62%, 49%)
HSVhsv(56, 77%, 79%)
CMYKcmyk(0%, 4.5%, 76.6%, 21.2%)
CIE-LABlab(76.27, -12.53, 68.51)
CIE-LCHlch(76.27, 69.64, 100.36°)
OKLaboklab(79.11% -0.0421 0.1495)
OKLCHoklch(79.11% 0.155 105.7)
XYZxyz(43.4520, 50.3237, 10.1134)
Luminance0.5032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C02F #2F38C9
analogous
#C9732F #C9C02F #85C92F
triadic
#C9C02F #2FC9C0 #C02FC9
tetradic
#C9C02F #2FC973 #2F38C9 #C92F85
square
#C9C02F #2FC973 #2F38C9 #C92F85
split-complementary
#C9C02F #2F85C9 #732FC9
monochromatic
#666118 #979123 #C9C02F #D9D25C #E5DF8E

Accessibility & contrast

On white

1.90
#C9C02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.06
#C9C02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C02F
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C02F#FFFFFF#000000##000000
##C9C02F1.001.9011.0611.06
#FFFFFF1.901.0021.0021.00
#00000011.0621.001.001.00
##00000011.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B907
Deuteranopia (green-blind)
#D4BF3B
Tritanopia (blue-blind)
#D8B3A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c9c02f;
/* rgb */ color: rgb(201, 192, 47);
/* oklch */ color: oklch(79.1% 0.155 105.7);
Tailwind
colors: {
  custom: {
    50: '#ddd274',
    500: '#c9c02f',
    950: '#000000',
  },
}
SCSS
$custom: #c9c02f;
$custom-light: #ddd274;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c02f",
  "rgb": {
    "r": 201,
    "g": 192,
    "b": 47
  },
  "hsl": {
    "h": 56.494,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.79112,
    "c": 0.15531,
    "h": 105.7
  },
  "luminance": 0.50322
}

Semantic roles & 50–950 ramp

primary
#C9C02F
secondary
#2C3070
accent
#4CE543
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C9C02F

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

Preview Lab → · Contrast checker → · Palette generator →

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