#C9C31C#C9C31C

#C9C31C is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.7% C 0.166 H 107.3°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#C9C31C
RGBrgb(201, 195, 28)
HSLhsl(58, 76%, 45%)
HSVhsv(58, 86%, 79%)
CMYKcmyk(0%, 3%, 86.1%, 21.2%)
CIE-LABlab(77.00, -14.62, 74.08)
CIE-LCHlch(77.00, 75.51, 101.17°)
OKLaboklab(79.67% -0.0493 0.1582)
OKLCHoklch(79.67% 0.166 107.3)
XYZxyz(43.8140, 51.5332, 8.7374)
Luminance0.5153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C31C #1C22C9
analogous
#C96C1C #C9C31C #79C91C
triadic
#C9C31C #1CC9C3 #C31CC9
tetradic
#C9C31C #1CC96C #1C22C9 #C91C79
square
#C9C31C #1CC96C #1C22C9 #C91C79
split-complementary
#C9C31C #1C79C9 #6C1CC9
monochromatic
#5E5B0D #938F15 #C9C31C #E4DE3E #ECE774

Accessibility & contrast

On white

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

On black

11.31
#C9C31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C31C
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C31C#FFFFFF#000000##000000
##C9C31C1.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB00
Deuteranopia (green-blind)
#D7C12E
Tritanopia (blue-blind)
#D8B5A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c9c31c;
/* rgb */ color: rgb(201, 195, 28);
/* oklch */ color: oklch(79.7% 0.166 107.3);
Tailwind
colors: {
  custom: {
    50: '#ded46d',
    500: '#c9c31c',
    950: '#000000',
  },
}
SCSS
$custom: #c9c31c;
$custom-light: #ded46d;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c31c",
  "rgb": {
    "r": 201,
    "g": 195,
    "b": 28
  },
  "hsl": {
    "h": 57.919,
    "s": 75.546,
    "l": 44.902
  },
  "oklch": {
    "l": 0.79673,
    "c": 0.16569,
    "h": 107.3
  },
  "luminance": 0.51532
}

Semantic roles & 50–950 ramp

primary
#C9C31C
secondary
#202369
accent
#3CF236
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161408
muted
#84837D

Preview Lab

Preview with #C9C31C

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

Preview Lab → · Contrast checker → · Palette generator →

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