#C9C338#C9C338

#C9C338 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.8% C 0.153 H 106.9°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#C9C338
RGBrgb(201, 195, 56)
HSLhsl(58, 57%, 50%)
HSVhsv(58, 72%, 79%)
CMYKcmyk(0%, 3%, 72.1%, 21.2%)
CIE-LABlab(77.12, -13.67, 66.31)
CIE-LCHlch(77.12, 67.71, 101.65°)
OKLaboklab(79.81% -0.0445 0.1465)
OKLCHoklch(79.81% 0.153 106.9)
XYZxyz(44.3181, 51.7348, 11.3919)
Luminance0.5173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C338 #383EC9
analogous
#C97A38 #C9C338 #87C938
triadic
#C9C338 #38C9C3 #C338C9
tetradic
#C9C338 #38C97A #383EC9 #C93887
square
#C9C338 #38C97A #383EC9 #C93887
split-complementary
#C9C338 #3887C9 #7A38C9
monochromatic
#6A671D #9A952A #C9C338 #D6D268 #E3E098

Accessibility & contrast

On white

1.85
#C9C338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#C9C338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C338
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C338#FFFFFF#000000##000000
##C9C3381.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB1E
Deuteranopia (green-blind)
#D6C142
Tritanopia (blue-blind)
#D8B6A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c9c338;
/* rgb */ color: rgb(201, 195, 56);
/* oklch */ color: oklch(79.8% 0.153 106.9);
Tailwind
colors: {
  custom: {
    50: '#ddd478',
    500: '#c9c338',
    950: '#000000',
  },
}
SCSS
$custom: #c9c338;
$custom-light: #ddd478;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c338",
  "rgb": {
    "r": 201,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 57.517,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.79808,
    "c": 0.15309,
    "h": 106.9
  },
  "luminance": 0.51733
}

Semantic roles & 50–950 ramp

primary
#C9C338
secondary
#313474
accent
#4EE147
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #C9C338

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

Preview Lab → · Contrast checker → · Palette generator →

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