#C9C840#C9C840

#C9C840 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 80.9% C 0.153 H 109.0°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#C9C840
RGBrgb(201, 200, 64)
HSLhsl(60, 56%, 52%)
HSVhsv(60, 68%, 79%)
CMYKcmyk(0%, 0.5%, 68.2%, 21.2%)
CIE-LABlab(78.52, -15.79, 64.77)
CIE-LCHlch(78.52, 66.67, 103.70°)
OKLaboklab(80.94% -0.0497 0.1446)
OKLCHoklch(80.94% 0.153 109)
XYZxyz(45.6687, 54.0976, 12.8857)
Luminance0.5410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C840 #4041C9
analogous
#C98440 #C9C840 #86C940
triadic
#C9C840 #40C9C8 #C840C9
tetradic
#C9C840 #40C984 #4041C9 #C94086
square
#C9C840 #40C984 #4041C9 #C94086
split-complementary
#C9C840 #4086C9 #8440C9
monochromatic
#6F6F1F #9F9E2D #C9C840 #D6D670 #E4E39F

Accessibility & contrast

On white

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

On black

11.82
#C9C840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C840
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C840#FFFFFF#000000##000000
##C9C8401.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#DAC44A
Tritanopia (blue-blind)
#D7BBAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c9c840;
/* rgb */ color: rgb(201, 200, 64);
/* oklch */ color: oklch(80.9% 0.153 109.0);
Tailwind
colors: {
  custom: {
    50: '#ddd87d',
    500: '#c9c840',
    950: '#000000',
  },
}
SCSS
$custom: #c9c840;
$custom-light: #ddd87d;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c840",
  "rgb": {
    "r": 201,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 59.562,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.80939,
    "c": 0.1529,
    "h": 109
  },
  "luminance": 0.54096
}

Semantic roles & 50–950 ramp

primary
#C9C840
secondary
#353578
accent
#4ADF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #C9C840

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

Preview Lab → · Contrast checker → · Palette generator →

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