#CCC74F#CCC74F

#CCC74F is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.1% C 0.141 H 106.9°. Best body text is #000000 at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#CCC74F
RGBrgb(204, 199, 79)
HSLhsl(58, 55%, 55%)
HSVhsv(58, 61%, 80%)
CMYKcmyk(0%, 2.5%, 61.3%, 20%)
CIE-LABlab(78.61, -13.14, 58.90)
CIE-LCHlch(78.61, 60.35, 102.57°)
OKLaboklab(81.11% -0.0408 0.1344)
OKLCHoklch(81.11% 0.141 106.9)
XYZxyz(46.7381, 54.2502, 15.4050)
Luminance0.5425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC74F #4F54CC
analogous
#CC884F #CCC74F #92CC4F
triadic
#CCC74F #4FCCC7 #C74FCC
tetradic
#CCC74F #4FCC88 #4F54CC #CC4F92
square
#CCC74F #4FCC88 #4F54CC #CC4F92
split-complementary
#CCC74F #4F92CC #884FCC
monochromatic
#7D7924 #ACA732 #CCC74F #DAD67E #E7E5AE

Accessibility & contrast

On white

1.77
#CCC74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.85
#CCC74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC74F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC74F#FFFFFF#000000##000000
##CCC74F1.001.7711.8511.85
#FFFFFF1.771.0021.0021.00
#00000011.8521.001.001.00
##00000011.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C041
Deuteranopia (green-blind)
#D9C556
Tritanopia (blue-blind)
#DABBAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc74f;
/* rgb */ color: rgb(204, 199, 79);
/* oklch */ color: oklch(81.1% 0.141 106.9);
Tailwind
colors: {
  custom: {
    50: '#ded785',
    500: '#ccc74f',
    950: '#000000',
  },
}
SCSS
$custom: #ccc74f;
$custom-light: #ded785;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc74f",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 57.6,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81105,
    "c": 0.1405,
    "h": 106.9
  },
  "luminance": 0.54249
}

Semantic roles & 50–950 ramp

primary
#CCC74F
secondary
#3B3E84
accent
#4FDE49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC74F

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

Preview Lab → · Contrast checker → · Palette generator →

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