#C9C040#C9C040

#C9C040 is a light, vivid yellow. Relative luminance 0.505; OKLCH L 79.2% C 0.145 H 105.3°. Best body text is #000000 at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#C9C040
RGBrgb(201, 192, 64)
HSLhsl(56, 56%, 52%)
HSVhsv(56, 68%, 79%)
CMYKcmyk(0%, 4.5%, 68.2%, 21.2%)
CIE-LABlab(76.37, -11.75, 62.62)
CIE-LCHlch(76.37, 63.71, 100.63°)
OKLaboklab(79.22% -0.0383 0.1401)
OKLCHoklch(79.22% 0.145 105.3)
XYZxyz(43.8642, 50.4886, 12.2842)
Luminance0.5049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C040 #4049C9
analogous
#C97B40 #C9C040 #8EC940
triadic
#C9C040 #40C9C0 #C040C9
tetradic
#C9C040 #40C97B #4049C9 #C9408E
square
#C9C040 #40C97B #4049C9 #C9408E
split-complementary
#C9C040 #408EC9 #7B40C9
monochromatic
#6F6A1F #9F972D #C9C040 #D6D070 #E4DF9F

Accessibility & contrast

On white

1.89
#C9C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.10
#C9C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C040
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C040#FFFFFF#000000##000000
##C9C0401.001.8911.1011.10
#FFFFFF1.891.0021.0021.00
#00000011.1021.001.001.00
##00000011.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#D4BF48
Tritanopia (blue-blind)
#D8B3A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c9c040;
/* rgb */ color: rgb(201, 192, 64);
/* oklch */ color: oklch(79.2% 0.145 105.3);
Tailwind
colors: {
  custom: {
    50: '#ddd27c',
    500: '#c9c040',
    950: '#000000',
  },
}
SCSS
$custom: #c9c040;
$custom-light: #ddd27c;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c040",
  "rgb": {
    "r": 201,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 56.058,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79224,
    "c": 0.14519,
    "h": 105.3
  },
  "luminance": 0.50487
}

Semantic roles & 50–950 ramp

primary
#C9C040
secondary
#353978
accent
#52DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #C9C040

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

Preview Lab → · Contrast checker → · Palette generator →

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