#CCCA42#CCCA42

#CCCA42 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.6% C 0.153 H 108.5°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#CCCA42
RGBrgb(204, 202, 66)
HSLhsl(59, 58%, 53%)
HSVhsv(59, 68%, 80%)
CMYKcmyk(0%, 1%, 67.6%, 20%)
CIE-LABlab(79.31, -15.42, 64.89)
CIE-LCHlch(79.31, 66.70, 103.37°)
OKLaboklab(81.64% -0.0486 0.1451)
OKLCHoklch(81.64% 0.153 108.5)
XYZxyz(47.0074, 55.4732, 13.3844)
Luminance0.5547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCA42 #4244CC
analogous
#CC8542 #CCCA42 #89CC42
triadic
#CCCA42 #42CCCA #CA42CC
tetradic
#CCCA42 #42CC85 #4244CC #CC4289
square
#CCCA42 #42CC85 #4244CC #CC4289
split-complementary
#CCCA42 #4289CC #8542CC
monochromatic
#74731F #A4A32C #CCCA42 #D9D872 #E6E5A2

Accessibility & contrast

On white

1.74
#CCCA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#CCCA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCA42
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCA42#FFFFFF#000000##000000
##CCCA421.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC22D
Deuteranopia (green-blind)
#DCC74B
Tritanopia (blue-blind)
#DABDAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccca42;
/* rgb */ color: rgb(204, 202, 66);
/* oklch */ color: oklch(81.6% 0.153 108.5);
Tailwind
colors: {
  custom: {
    50: '#dfd97e',
    500: '#ccca42',
    950: '#000000',
  },
}
SCSS
$custom: #ccca42;
$custom-light: #dfd97e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccca42",
  "rgb": {
    "r": 204,
    "g": 202,
    "b": 66
  },
  "hsl": {
    "h": 59.13,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81636,
    "c": 0.15302,
    "h": 108.5
  },
  "luminance": 0.55472
}

Semantic roles & 50–950 ramp

primary
#CCCA42
secondary
#35367D
accent
#49E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCCA42

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

Preview Lab → · Contrast checker → · Palette generator →

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