#C9C138#C9C138

#C9C138 is a light, vivid yellow. Relative luminance 0.508; OKLCH L 79.4% C 0.151 H 106.0°. Best body text is #000000 at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#C9C138
RGBrgb(201, 193, 56)
HSLhsl(57, 57%, 50%)
HSVhsv(57, 72%, 79%)
CMYKcmyk(0%, 4%, 72.1%, 21.2%)
CIE-LABlab(76.58, -12.66, 65.80)
CIE-LCHlch(76.58, 67.00, 100.89°)
OKLaboklab(79.38% -0.0417 0.1454)
OKLCHoklch(79.38% 0.151 106)
XYZxyz(43.8729, 50.8446, 11.2436)
Luminance0.5084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C138 #3840C9
analogous
#C97938 #C9C138 #88C938
triadic
#C9C138 #38C9C1 #C138C9
tetradic
#C9C138 #38C979 #3840C9 #C93888
square
#C9C138 #38C979 #3840C9 #C93888
split-complementary
#C9C138 #3888C9 #7938C9
monochromatic
#6A661D #9A942A #C9C138 #D6D068 #E3DF98

Accessibility & contrast

On white

1.88
#C9C138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.17
#C9C138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C138
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C138#FFFFFF#000000##000000
##C9C1381.001.8811.1711.17
#FFFFFF1.881.0021.0021.00
#00000011.1721.001.001.00
##00000011.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA1F
Deuteranopia (green-blind)
#D5C042
Tritanopia (blue-blind)
#D8B4A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c9c138;
/* rgb */ color: rgb(201, 193, 56);
/* oklch */ color: oklch(79.4% 0.151 106.0);
Tailwind
colors: {
  custom: {
    50: '#ddd378',
    500: '#c9c138',
    950: '#000000',
  },
}
SCSS
$custom: #c9c138;
$custom-light: #ddd378;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c138",
  "rgb": {
    "r": 201,
    "g": 193,
    "b": 56
  },
  "hsl": {
    "h": 56.69,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.7938,
    "c": 0.15124,
    "h": 106
  },
  "luminance": 0.50843
}

Semantic roles & 50–950 ramp

primary
#C9C138
secondary
#313574
accent
#50E147
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C9C138

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

Preview Lab → · Contrast checker → · Palette generator →

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