#C9C242#C9C242

#C9C242 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.7% C 0.146 H 106.2°. Best body text is #000000 at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#C9C242
RGBrgb(201, 194, 66)
HSLhsl(57, 56%, 52%)
HSVhsv(57, 67%, 79%)
CMYKcmyk(0%, 3.5%, 67.2%, 21.2%)
CIE-LABlab(76.92, -12.66, 62.39)
CIE-LCHlch(76.92, 63.66, 101.47°)
OKLaboklab(79.67% -0.0407 0.1399)
OKLCHoklch(79.67% 0.146 106.2)
XYZxyz(44.3642, 51.3960, 12.7367)
Luminance0.5139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C242 #4249C9
analogous
#C97F42 #C9C242 #8CC942
triadic
#C9C242 #42C9C2 #C242C9
tetradic
#C9C242 #42C97F #4249C9 #C9428C
square
#C9C242 #42C97F #4249C9 #C9428C
split-complementary
#C9C242 #428CC9 #7F42C9
monochromatic
#706C20 #A09A2E #C9C242 #D7D172 #E4E1A1

Accessibility & contrast

On white

1.86
#C9C242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.28
#C9C242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C242
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C242#FFFFFF#000000##000000
##C9C2421.001.8611.2811.28
#FFFFFF1.861.0021.0021.00
#00000011.2821.001.001.00
##00000011.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB30
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#D7B5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c9c242;
/* rgb */ color: rgb(201, 194, 66);
/* oklch */ color: oklch(79.7% 0.146 106.2);
Tailwind
colors: {
  custom: {
    50: '#ddd47d',
    500: '#c9c242',
    950: '#000000',
  },
}
SCSS
$custom: #c9c242;
$custom-light: #ddd47d;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c242",
  "rgb": {
    "r": 201,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 56.889,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.79667,
    "c": 0.1457,
    "h": 106.2
  },
  "luminance": 0.51394
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C9C242

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

Preview Lab → · Contrast checker → · Palette generator →

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