#C9CC31#C9CC31

#C9CC31 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.7% C 0.166 H 110.7°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#C9CC31
RGBrgb(201, 204, 49)
HSLhsl(61, 61%, 50%)
HSVhsv(61, 76%, 80%)
CMYKcmyk(1.5%, 0%, 76%, 20%)
CIE-LABlab(79.51, -18.47, 70.85)
CIE-LCHlch(79.51, 73.21, 104.61°)
OKLaboklab(81.71% -0.0585 0.1548)
OKLCHoklch(81.71% 0.166 110.7)
XYZxyz(46.2363, 55.8263, 11.2451)
Luminance0.5583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9CC31 #3431CC
analogous
#CC8131 #C9CC31 #7CCC31
triadic
#C9CC31 #31C9CC #CC31C9
tetradic
#C9CC31 #31CC81 #3431CC #CC317C
square
#C9CC31 #31CC81 #3431CC #CC317C
split-complementary
#C9CC31 #317CCC #8131CC
monochromatic
#686919 #989B25 #C9CC31 #D7D961 #E3E592

Accessibility & contrast

On white

1.73
#C9CC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#C9CC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9CC31
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9CC31#FFFFFF#000000##000000
##C9CC311.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC303
Deuteranopia (green-blind)
#DEC73E
Tritanopia (blue-blind)
#D7BFAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c9cc31;
/* rgb */ color: rgb(201, 204, 49);
/* oklch */ color: oklch(81.7% 0.166 110.7);
Tailwind
colors: {
  custom: {
    50: '#dddb76',
    500: '#c9cc31',
    950: '#000000',
  },
}
SCSS
$custom: #c9cc31;
$custom-light: #dddb76;
$custom-dark: #000000;
JSON
{
  "hex": "#c9cc31",
  "rgb": {
    "r": 201,
    "g": 204,
    "b": 49
  },
  "hsl": {
    "h": 61.161,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.81707,
    "c": 0.16553,
    "h": 110.7
  },
  "luminance": 0.55825
}

Semantic roles & 50–950 ramp

primary
#C9CC31
secondary
#2F2E73
accent
#43E447
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C9CC31

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

Preview Lab → · Contrast checker → · Palette generator →

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