#CCC942#CCC942

#CCC942 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.4% C 0.152 H 108.1°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#CCC942
RGBrgb(204, 201, 66)
HSLhsl(59, 58%, 53%)
HSVhsv(59, 68%, 80%)
CMYKcmyk(0%, 1.5%, 67.6%, 20%)
CIE-LABlab(79.04, -14.92, 64.62)
CIE-LCHlch(79.04, 66.32, 103.00°)
OKLaboklab(81.42% -0.0472 0.1445)
OKLCHoklch(81.42% 0.152 108.1)
XYZxyz(46.7735, 55.0055, 13.3065)
Luminance0.5500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC942 #4245CC
analogous
#CC8442 #CCC942 #8ACC42
triadic
#CCC942 #42CCC9 #C942CC
tetradic
#CCC942 #42CC84 #4245CC #CC428A
square
#CCC942 #42CC84 #4245CC #CC428A
split-complementary
#CCC942 #428ACC #8442CC
monochromatic
#74721F #A4A22C #CCC942 #D9D772 #E6E5A2

Accessibility & contrast

On white

1.75
#CCC942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#CCC942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC942
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC942#FFFFFF#000000##000000
##CCC9421.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12E
Deuteranopia (green-blind)
#DCC64B
Tritanopia (blue-blind)
#DABCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc942;
/* rgb */ color: rgb(204, 201, 66);
/* oklch */ color: oklch(81.4% 0.152 108.1);
Tailwind
colors: {
  custom: {
    50: '#dfd97e',
    500: '#ccc942',
    950: '#000000',
  },
}
SCSS
$custom: #ccc942;
$custom-light: #dfd97e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc942",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 66
  },
  "hsl": {
    "h": 58.696,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81422,
    "c": 0.15204,
    "h": 108.1
  },
  "luminance": 0.55004
}

Semantic roles & 50–950 ramp

primary
#CCC942
secondary
#35377D
accent
#4AE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC942

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

Preview Lab → · Contrast checker → · Palette generator →

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