#C9C142#C9C142

#C9C142 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.5% C 0.145 H 105.7°. Best body text is #000000 at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#C9C142
RGBrgb(201, 193, 66)
HSLhsl(56, 56%, 52%)
HSVhsv(56, 67%, 79%)
CMYKcmyk(0%, 4%, 67.2%, 21.2%)
CIE-LABlab(76.65, -12.15, 62.12)
CIE-LCHlch(76.65, 63.30, 101.07°)
OKLaboklab(79.45% -0.0392 0.1393)
OKLCHoklch(79.45% 0.145 105.7)
XYZxyz(44.1424, 50.9524, 12.6628)
Luminance0.5095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9C142 #424AC9
analogous
#C97D42 #C9C142 #8EC942
triadic
#C9C142 #42C9C1 #C142C9
tetradic
#C9C142 #42C97D #424AC9 #C9428E
square
#C9C142 #42C97D #424AC9 #C9428E
split-complementary
#C9C142 #428EC9 #7D42C9
monochromatic
#706C20 #A0992E #C9C142 #D7D172 #E4E0A1

Accessibility & contrast

On white

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

On black

11.19
#C9C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9C142
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9C142#FFFFFF#000000##000000
##C9C1421.001.8811.1911.19
#FFFFFF1.881.0021.0021.00
#00000011.1921.001.001.00
##00000011.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D4C04A
Tritanopia (blue-blind)
#D7B4A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c9c142;
/* rgb */ color: rgb(201, 193, 66);
/* oklch */ color: oklch(79.5% 0.145 105.7);
Tailwind
colors: {
  custom: {
    50: '#ddd37d',
    500: '#c9c142',
    950: '#000000',
  },
}
SCSS
$custom: #c9c142;
$custom-light: #ddd37d;
$custom-dark: #000000;
JSON
{
  "hex": "#c9c142",
  "rgb": {
    "r": 201,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 56.444,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.79453,
    "c": 0.14476,
    "h": 105.7
  },
  "luminance": 0.50951
}

Semantic roles & 50–950 ramp

primary
#C9C142
secondary
#363A7A
accent
#52DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C9C142

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

Preview Lab → · Contrast checker → · Palette generator →

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