#C9C838#C9C838

#C9C838 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 80.9% C 0.158 H 109.1°. Best body text is #000000 at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#C9C838
RGBrgb(201, 200, 56)
HSLhsl(60, 57%, 50%)
HSVhsv(60, 72%, 79%)
CMYKcmyk(0%, 0.5%, 72.1%, 21.2%)
CIE-LABlab(78.47, -16.18, 67.60)
CIE-LCHlch(78.47, 69.51, 103.46°)
OKLaboklab(80.88% -0.0515 0.1492)
OKLCHoklch(80.88% 0.158 109.1)
XYZxyz(45.4571, 54.0130, 11.7716)
Luminance0.5401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C838 #3839C9
analogous
#C97F38 #C9C838 #82C938
triadic
#C9C838 #38C9C8 #C838C9
tetradic
#C9C838 #38C97F #3839C9 #C93882
square
#C9C838 #38C97F #3839C9 #C93882
split-complementary
#C9C838 #3882C9 #7F38C9
monochromatic
#6A691D #9A992A #C9C838 #D6D568 #E3E398

Accessibility & contrast

On white

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

On black

11.80
#C9C838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C838
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C838#FFFFFF#000000##000000
##C9C8381.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C01C
Deuteranopia (green-blind)
#DAC443
Tritanopia (blue-blind)
#D7BBAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c9c838;
/* rgb */ color: rgb(201, 200, 56);
/* oklch */ color: oklch(80.9% 0.158 109.1);
Tailwind
colors: {
  custom: {
    50: '#ddd879',
    500: '#c9c838',
    950: '#000000',
  },
}
SCSS
$custom: #c9c838;
$custom-light: #ddd879;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c838",
  "rgb": {
    "r": 201,
    "g": 200,
    "b": 56
  },
  "hsl": {
    "h": 59.586,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.80883,
    "c": 0.15785,
    "h": 109.1
  },
  "luminance": 0.54012
}

Semantic roles & 50–950 ramp

primary
#C9C838
secondary
#313274
accent
#48E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #C9C838

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

Preview Lab → · Contrast checker → · Palette generator →

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