#CCD74F#CCD74F

#CCD74F is a very light, vivid yellow. Relative luminance 0.620; OKLCH L 84.5% C 0.157 H 113.7°. Best body text is #000000 at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#CCD74F
RGBrgb(204, 215, 79)
HSLhsl(65, 63%, 58%)
HSVhsv(65, 63%, 84%)
CMYKcmyk(5.1%, 0%, 63.3%, 15.7%)
CIE-LABlab(82.92, -21.08, 63.49)
CIE-LCHlch(82.92, 66.90, 108.37°)
OKLaboklab(84.55% -0.0632 0.1441)
OKLCHoklch(84.55% 0.157 113.7)
XYZxyz(50.6149, 62.0037, 16.6972)
Luminance0.6200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD74F #5A4FD7
analogous
#D79E4F #CCD74F #88D74F
triadic
#CCD74F #4FCCD7 #D74FCC
tetradic
#CCD74F #4FD79E #5A4FD7 #D74F88
square
#CCD74F #4FD79E #5A4FD7 #D74F88
split-complementary
#CCD74F #4F88D7 #9E4FD7
monochromatic
#838C20 #B2BE2B #CCD74F #DAE281 #E9EEB3

Accessibility & contrast

On white

1.57
#CCD74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.40
#CCD74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD74F
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD74F#FFFFFF#000000##000000
##CCD74F1.001.5713.4013.40
#FFFFFF1.571.0021.0021.00
#00000013.4021.001.001.00
##00000013.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CD3D
Deuteranopia (green-blind)
#E6D058
Tritanopia (blue-blind)
#D9CBBB
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #ccd74f;
/* rgb */ color: rgb(204, 215, 79);
/* oklch */ color: oklch(84.5% 0.157 113.7);
Tailwind
colors: {
  custom: {
    50: '#dee387',
    500: '#ccd74f',
    950: '#000000',
  },
}
SCSS
$custom: #ccd74f;
$custom-light: #dee387;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd74f",
  "rgb": {
    "r": 204,
    "g": 215,
    "b": 79
  },
  "hsl": {
    "h": 64.853,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.84545,
    "c": 0.15739,
    "h": 113.7
  },
  "luminance": 0.62003
}

Semantic roles & 50–950 ramp

primary
#CCD74F
secondary
#403992
accent
#42E64F
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CCD74F

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

Preview Lab → · Contrast checker → · Palette generator →

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