#CCCC2F#CCCC2F

#CCCC2F is a light, vivid yellow. Relative luminance 0.562; OKLCH L 81.9% C 0.166 H 109.6°. Best body text is #000000 at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#CCCC2F
RGBrgb(204, 204, 47)
HSLhsl(60, 63%, 49%)
HSVhsv(60, 77%, 80%)
CMYKcmyk(0%, 0%, 77%, 20%)
CIE-LABlab(79.74, -17.28, 71.74)
CIE-LCHlch(79.74, 73.79, 103.54°)
OKLaboklab(81.95% -0.0555 0.1563)
OKLCHoklch(81.95% 0.166 109.6)
XYZxyz(47.0096, 56.2298, 11.0659)
Luminance0.5623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC2F #2F2FCC
analogous
#CC7E2F #CCCC2F #7ECC2F
triadic
#CCCC2F #2FCCCC #CC2FCC
tetradic
#CCCC2F #2FCC7E #2F2FCC #CC2F7E
square
#CCCC2F #2FCC7E #2F2FCC #CC2F7E
split-complementary
#CCCC2F #2F7ECC #7E2FCC
monochromatic
#696918 #9A9A24 #CCCC2F #DADA5E #E5E590

Accessibility & contrast

On white

1.71
#CCCC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.25
#CCCC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC2F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC2F#FFFFFF#000000##000000
##CCCC2F1.001.7112.2512.25
#FFFFFF1.711.0021.0021.00
#00000012.2521.001.001.00
##00000012.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC300
Deuteranopia (green-blind)
#DFC83D
Tritanopia (blue-blind)
#DBBFAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cccc2f;
/* rgb */ color: rgb(204, 204, 47);
/* oklch */ color: oklch(81.9% 0.166 109.6);
Tailwind
colors: {
  custom: {
    50: '#e0db75',
    500: '#cccc2f',
    950: '#000000',
  },
}
SCSS
$custom: #cccc2f;
$custom-light: #e0db75;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc2f",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.81946,
    "c": 0.16585,
    "h": 109.6
  },
  "luminance": 0.56228
}

Semantic roles & 50–950 ramp

primary
#CCCC2F
secondary
#2D2D72
accent
#42E642
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CCCC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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