#C9C162#C9C162

#C9C162 is a light, moderate yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.118 H 104.4°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#C9C162
RGBrgb(201, 193, 98)
HSLhsl(55, 49%, 59%)
HSVhsv(55, 51%, 79%)
CMYKcmyk(0%, 4%, 51.2%, 21.2%)
CIE-LABlab(76.95, -9.88, 48.31)
CIE-LCHlch(76.95, 49.31, 101.56°)
OKLaboklab(79.78% -0.0293 0.114)
OKLCHoklch(79.78% 0.118 104.4)
XYZxyz(45.3632, 51.4407, 19.0924)
Luminance0.5144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C162 #626AC9
analogous
#C98D62 #C9C162 #9DC962
triadic
#C9C162 #62C9C1 #C162C9
tetradic
#C9C162 #62C98D #626AC9 #C9629D
square
#C9C162 #62C98D #626AC9 #C9629D
split-complementary
#C9C162 #629DC9 #8D62C9
monochromatic
#837D2D #B1A83D #C9C162 #D9D390 #E8E5BD

Accessibility & contrast

On white

1.86
#C9C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#C9C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C162
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C162#FFFFFF#000000##000000
##C9C1621.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBB59
Deuteranopia (green-blind)
#D2C067
Tritanopia (blue-blind)
#D6B6AB
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c9c162;
/* rgb */ color: rgb(201, 193, 98);
/* oklch */ color: oklch(79.8% 0.118 104.4);
Tailwind
colors: {
  custom: {
    50: '#dbd391',
    500: '#c9c162',
    950: '#000000',
  },
}
SCSS
$custom: #c9c162;
$custom-light: #dbd391;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c162",
  "rgb": {
    "r": 201,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 55.34,
    "s": 48.815,
    "l": 58.627
  },
  "oklch": {
    "l": 0.79783,
    "c": 0.11768,
    "h": 104.4
  },
  "luminance": 0.51439
}

Semantic roles & 50–950 ramp

primary
#C9C162
secondary
#444A8B
accent
#5AD84F
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #C9C162

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

Preview Lab → · Contrast checker → · Palette generator →

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