#C9C831#C9C831

#C9C831 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 80.8% C 0.162 H 109.1°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#C9C831
RGBrgb(201, 200, 49)
HSLhsl(60, 61%, 49%)
HSVhsv(60, 76%, 79%)
CMYKcmyk(0%, 0.5%, 75.6%, 21.2%)
CIE-LABlab(78.43, -16.48, 69.86)
CIE-LCHlch(78.43, 71.77, 103.27°)
OKLaboklab(80.84% -0.053 0.1527)
OKLCHoklch(80.84% 0.162 109.1)
XYZxyz(45.2978, 53.9492, 10.9323)
Luminance0.5395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C831 #3132C9
analogous
#C97C31 #C9C831 #7EC931
triadic
#C9C831 #31C9C8 #C831C9
tetradic
#C9C831 #31C97C #3132C9 #C9317E
square
#C9C831 #31C97C #3132C9 #C9317E
split-complementary
#C9C831 #317EC9 #7C31C9
monochromatic
#676619 #989725 #C9C831 #D8D75F #E4E390

Accessibility & contrast

On white

1.78
#C9C831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#C9C831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C831
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C831#FFFFFF#000000##000000
##C9C8311.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C007
Deuteranopia (green-blind)
#DAC43E
Tritanopia (blue-blind)
#D8BBAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c9c831;
/* rgb */ color: rgb(201, 200, 49);
/* oklch */ color: oklch(80.8% 0.162 109.1);
Tailwind
colors: {
  custom: {
    50: '#ddd875',
    500: '#c9c831',
    950: '#000000',
  },
}
SCSS
$custom: #c9c831;
$custom-light: #ddd875;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c831",
  "rgb": {
    "r": 201,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 59.605,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.80842,
    "c": 0.16166,
    "h": 109.1
  },
  "luminance": 0.53948
}

Semantic roles & 50–950 ramp

primary
#C9C831
secondary
#2D2E71
accent
#45E444
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C9C831

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

Preview Lab → · Contrast checker → · Palette generator →

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