#CCC040#CCC040

#CCC040 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.5% C 0.145 H 103.9°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#CCC040
RGBrgb(204, 192, 64)
HSLhsl(55, 58%, 53%)
HSVhsv(55, 69%, 80%)
CMYKcmyk(0%, 5.9%, 68.6%, 20%)
CIE-LABlab(76.62, -10.47, 62.96)
CIE-LCHlch(76.62, 63.82, 99.44°)
OKLaboklab(79.49% -0.0349 0.1407)
OKLCHoklch(79.49% 0.145 103.9)
XYZxyz(44.6787, 50.9086, 12.3224)
Luminance0.5091 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC040 #404CCC
analogous
#CC7A40 #CCC040 #92CC40
triadic
#CCC040 #40CCC0 #C040CC
tetradic
#CCC040 #40CC7A #404CCC #CC4092
square
#CCC040 #40CC7A #404CCC #CC4092
split-complementary
#CCC040 #4092CC #7A40CC
monochromatic
#736C1F #A3992C #CCC040 #D9D070 #E6E0A1

Accessibility & contrast

On white

1.88
#CCC040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#CCC040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC040
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC040#FFFFFF#000000##000000
##CCC0401.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA2D
Deuteranopia (green-blind)
#D5C048
Tritanopia (blue-blind)
#DBB3A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc040;
/* rgb */ color: rgb(204, 192, 64);
/* oklch */ color: oklch(79.5% 0.145 103.9);
Tailwind
colors: {
  custom: {
    50: '#dfd27c',
    500: '#ccc040',
    950: '#000000',
  },
}
SCSS
$custom: #ccc040;
$custom-light: #dfd27c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc040",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 54.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.79489,
    "c": 0.14494,
    "h": 103.9
  },
  "luminance": 0.50907
}

Semantic roles & 50–950 ramp

primary
#CCC040
secondary
#343B7C
accent
#54E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC040

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

Preview Lab → · Contrast checker → · Palette generator →

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