#C9C342#C9C342

#C9C342 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.9% C 0.147 H 106.7°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#C9C342
RGBrgb(201, 195, 66)
HSLhsl(57, 56%, 52%)
HSVhsv(57, 67%, 79%)
CMYKcmyk(0%, 3%, 67.2%, 21.2%)
CIE-LABlab(77.19, -13.16, 62.66)
CIE-LCHlch(77.19, 64.03, 101.86°)
OKLaboklab(79.88% -0.0421 0.1405)
OKLCHoklch(79.88% 0.147 106.7)
XYZxyz(44.5875, 51.8426, 12.8111)
Luminance0.5184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C342 #4248C9
analogous
#C97F42 #C9C342 #8CC942
triadic
#C9C342 #42C9C3 #C342C9
tetradic
#C9C342 #42C97F #4248C9 #C9428C
square
#C9C342 #42C97F #4248C9 #C9428C
split-complementary
#C9C342 #428CC9 #7F42C9
monochromatic
#706D20 #A09B2E #C9C342 #D7D272 #E4E1A1

Accessibility & contrast

On white

1.85
#C9C342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#C9C342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C342
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C342#FFFFFF#000000##000000
##C9C3421.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2F
Deuteranopia (green-blind)
#D6C14A
Tritanopia (blue-blind)
#D7B6A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #c9c342;
/* rgb */ color: rgb(201, 195, 66);
/* oklch */ color: oklch(79.9% 0.147 106.7);
Tailwind
colors: {
  custom: {
    50: '#ddd47e',
    500: '#c9c342',
    950: '#000000',
  },
}
SCSS
$custom: #c9c342;
$custom-light: #ddd47e;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c342",
  "rgb": {
    "r": 201,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 57.333,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.79881,
    "c": 0.14666,
    "h": 106.7
  },
  "luminance": 0.51841
}

Semantic roles & 50–950 ramp

primary
#C9C342
secondary
#36397A
accent
#50DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C9C342

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

Preview Lab → · Contrast checker → · Palette generator →

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