#CCB04C#CCB04C

#CCB04C is a light, vivid yellow. Relative luminance 0.444; OKLCH L 76.3% C 0.123 H 93.6°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#CCB04C
RGBrgb(204, 176, 76)
HSLhsl(47, 56%, 55%)
HSVhsv(47, 63%, 80%)
CMYKcmyk(0%, 13.7%, 62.7%, 20%)
CIE-LABlab(72.50, -1.45, 53.58)
CIE-LCHlch(72.50, 53.60, 91.55°)
OKLaboklab(76.25% -0.0077 0.1227)
OKLCHoklch(76.25% 0.123 93.6)
XYZxyz(41.7336, 44.4120, 13.2102)
Luminance0.4441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB04C #4C68CC
analogous
#CC704C #CCB04C #A8CC4C
triadic
#CCB04C #4CCCB0 #B04CCC
tetradic
#CCB04C #4CCC70 #4C68CC #CC4CA8
square
#CCB04C #4CCC70 #4C68CC #CC4CA8
split-complementary
#CCB04C #4CA8CC #704CCC
monochromatic
#7B6723 #AA9031 #CCB04C #DAC57C #E7DAAB

Accessibility & contrast

On white

2.13
#CCB04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#CCB04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB04C
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB04C#FFFFFF#000000##000000
##CCB04C1.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AD41
Deuteranopia (green-blind)
#C8B551
Tritanopia (blue-blind)
#DBA39A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #ccb04c;
/* rgb */ color: rgb(204, 176, 76);
/* oklch */ color: oklch(76.3% 0.123 93.6);
Tailwind
colors: {
  custom: {
    50: '#dfc782',
    500: '#ccb04c',
    950: '#000000',
  },
}
SCSS
$custom: #ccb04c;
$custom-light: #dfc782;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb04c",
  "rgb": {
    "r": 204,
    "g": 176,
    "b": 76
  },
  "hsl": {
    "h": 46.875,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.76253,
    "c": 0.12295,
    "h": 93.6
  },
  "luminance": 0.4441
}

Semantic roles & 50–950 ramp

primary
#CCB04C
secondary
#9FABD5
accent
#6ADF49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB04C

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

Preview Lab → · Contrast checker → · Palette generator →

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