#CCCA40#CCCA40

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

Color values

HEX#CCCA40
RGBrgb(204, 202, 64)
HSLhsl(59, 58%, 53%)
HSVhsv(59, 69%, 80%)
CMYKcmyk(0%, 1%, 68.6%, 20%)
CIE-LABlab(79.30, -15.53, 65.63)
CIE-LCHlch(79.30, 67.44, 103.31°)
OKLaboklab(81.62% -0.0491 0.1463)
OKLCHoklch(81.62% 0.154 108.6)
XYZxyz(46.9495, 55.4500, 13.0793)
Luminance0.5545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCA40 #4042CC
analogous
#CC8440 #CCCA40 #88CC40
triadic
#CCCA40 #40CCCA #CA40CC
tetradic
#CCCA40 #40CC84 #4042CC #CC4088
square
#CCCA40 #40CC84 #4042CC #CC4088
split-complementary
#CCCA40 #4088CC #8440CC
monochromatic
#73721F #A3A22C #CCCA40 #D9D770 #E6E5A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCCA40#FFFFFF#000000##000000
##CCCA401.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)
#DAC22A
Deuteranopia (green-blind)
#DCC74A
Tritanopia (blue-blind)
#DABDAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccca40;
/* rgb */ color: rgb(204, 202, 64);
/* oklch */ color: oklch(81.6% 0.154 108.6);
Tailwind
colors: {
  custom: {
    50: '#dfd97d',
    500: '#ccca40',
    950: '#000000',
  },
}
SCSS
$custom: #ccca40;
$custom-light: #dfd97d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccca40",
  "rgb": {
    "r": 204,
    "g": 202,
    "b": 64
  },
  "hsl": {
    "h": 59.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.81621,
    "c": 0.15434,
    "h": 108.6
  },
  "luminance": 0.55449
}

Semantic roles & 50–950 ramp

primary
#CCCA40
secondary
#34357C
accent
#49E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCCA40

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

Preview Lab → · Contrast checker → · Palette generator →

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