#C9C42B#C9C42B

#C9C42B is a light, vivid yellow. Relative luminance 0.521; OKLCH L 79.9% C 0.161 H 107.6°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#C9C42B
RGBrgb(201, 196, 43)
HSLhsl(58, 65%, 48%)
HSVhsv(58, 79%, 79%)
CMYKcmyk(0%, 2.5%, 78.6%, 21.2%)
CIE-LABlab(77.32, -14.70, 70.66)
CIE-LCHlch(77.32, 72.17, 101.75°)
OKLaboklab(79.95% -0.0485 0.1533)
OKLCHoklch(79.95% 0.161 107.6)
XYZxyz(44.2652, 52.0733, 10.0045)
Luminance0.5207 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C42B #2B30C9
analogous
#C9752B #C9C42B #7FC92B
triadic
#C9C42B #2BC9C4 #C42BC9
tetradic
#C9C42B #2BC975 #2B30C9 #C92B7F
square
#C9C42B #2BC975 #2B30C9 #C92B7F
split-complementary
#C9C42B #2B7FC9 #752BC9
monochromatic
#646215 #979320 #C9C42B #DBD756 #E6E389

Accessibility & contrast

On white

1.84
#C9C42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#C9C42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C42B
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C42B#FFFFFF#000000##000000
##C9C42B1.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC00
Deuteranopia (green-blind)
#D8C138
Tritanopia (blue-blind)
#D8B7A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #c9c42b;
/* rgb */ color: rgb(201, 196, 43);
/* oklch */ color: oklch(79.9% 0.161 107.6);
Tailwind
colors: {
  custom: {
    50: '#ded572',
    500: '#c9c42b',
    950: '#000000',
  },
}
SCSS
$custom: #c9c42b;
$custom-light: #ded572;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c42b",
  "rgb": {
    "r": 201,
    "g": 196,
    "b": 43
  },
  "hsl": {
    "h": 58.101,
    "s": 64.754,
    "l": 47.843
  },
  "oklch": {
    "l": 0.79949,
    "c": 0.16084,
    "h": 107.6
  },
  "luminance": 0.52072
}

Semantic roles & 50–950 ramp

primary
#C9C42B
secondary
#2A2C6F
accent
#45E840
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C9C42B

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

Preview Lab → · Contrast checker → · Palette generator →

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