#CCD04F#CCD04F

#CCD04F is a very light, vivid yellow. Relative luminance 0.585; OKLCH L 83.0% C 0.150 H 110.9°. Best body text is #000000 at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#CCD04F
RGBrgb(204, 208, 79)
HSLhsl(62, 58%, 56%)
HSVhsv(62, 62%, 82%)
CMYKcmyk(1.9%, 0%, 62%, 18.4%)
CIE-LABlab(81.02, -17.64, 61.49)
CIE-LCHlch(81.02, 63.97, 106.01°)
OKLaboklab(83.03% -0.0535 0.1399)
OKLCHoklch(83.03% 0.15 110.9)
XYZxyz(48.8704, 58.5148, 16.1157)
Luminance0.5851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD04F #534FD0
analogous
#D0944F #CCD04F #8CD04F
triadic
#CCD04F #4FCCD0 #D04FCC
tetradic
#CCD04F #4FD094 #534FD0 #D04F8C
square
#CCD04F #4FD094 #534FD0 #D04F8C
split-complementary
#CCD04F #4F8CD0 #944FD0
monochromatic
#7F8223 #AEB230 #CCD04F #DADD7F #E8EAB0

Accessibility & contrast

On white

1.65
#CCD04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.70
#CCD04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD04F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD04F#FFFFFF#000000##000000
##CCD04F1.001.6512.7012.70
#FFFFFF1.651.0021.0021.00
#00000012.7021.001.001.00
##00000012.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC73F
Deuteranopia (green-blind)
#E0CB57
Tritanopia (blue-blind)
#D9C4B5
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #ccd04f;
/* rgb */ color: rgb(204, 208, 79);
/* oklch */ color: oklch(83.0% 0.150 110.9);
Tailwind
colors: {
  custom: {
    50: '#dede86',
    500: '#ccd04f',
    950: '#000000',
  },
}
SCSS
$custom: #ccd04f;
$custom-light: #dede86;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd04f",
  "rgb": {
    "r": 204,
    "g": 208,
    "b": 79
  },
  "hsl": {
    "h": 61.86,
    "s": 57.848,
    "l": 56.275
  },
  "oklch": {
    "l": 0.83033,
    "c": 0.1498,
    "h": 110.9
  },
  "luminance": 0.58514
}

Semantic roles & 50–950 ramp

primary
#CCD04F
secondary
#3D3A89
accent
#47E14C
background
#FEFEFC
surface
#FCFCF3
border
#D5D5CD
text
#16150C
muted
#84847F

Preview Lab

Preview with #CCD04F

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

Preview Lab → · Contrast checker → · Palette generator →

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