#CCD040#CCD040

#CCD040 is a very light, vivid yellow. Relative luminance 0.583; OKLCH L 82.9% C 0.160 H 111.0°. Best body text is #000000 at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#CCD040
RGBrgb(204, 208, 64)
HSLhsl(62, 61%, 53%)
HSVhsv(62, 69%, 82%)
CMYKcmyk(1.9%, 0%, 69.2%, 18.4%)
CIE-LABlab(80.92, -18.51, 67.23)
CIE-LCHlch(80.92, 69.73, 105.40°)
OKLaboklab(82.91% -0.0575 0.1497)
OKLCHoklch(82.91% 0.16 111)
XYZxyz(48.3847, 58.3205, 13.5577)
Luminance0.5832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD040 #4440D0
analogous
#D08C40 #CCD040 #84D040
triadic
#CCD040 #40CCD0 #D040CC
tetradic
#CCD040 #40D08C #4440D0 #D04084
square
#CCD040 #40D08C #4440D0 #D04084
split-complementary
#CCD040 #4084D0 #8C40D0
monochromatic
#76781E #A6A92A #CCD040 #D9DC71 #E6E8A2

Accessibility & contrast

On white

1.66
#CCD040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.66
#CCD040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD040
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD040#FFFFFF#000000##000000
##CCD0401.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C728
Deuteranopia (green-blind)
#E1CB4B
Tritanopia (blue-blind)
#DAC3B4
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #ccd040;
/* rgb */ color: rgb(204, 208, 64);
/* oklch */ color: oklch(82.9% 0.160 111.0);
Tailwind
colors: {
  custom: {
    50: '#dfde7e',
    500: '#ccd040',
    950: '#000000',
  },
}
SCSS
$custom: #ccd040;
$custom-light: #dfde7e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd040",
  "rgb": {
    "r": 204,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 61.667,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.82913,
    "c": 0.16035,
    "h": 111
  },
  "luminance": 0.58319
}

Semantic roles & 50–950 ramp

primary
#CCD040
secondary
#363480
accent
#44E449
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CCD040

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

Preview Lab → · Contrast checker → · Palette generator →

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