#CCC74B#CCC74B

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

Color values

HEX#CCC74B
RGBrgb(204, 199, 75)
HSLhsl(58, 56%, 55%)
HSVhsv(58, 63%, 80%)
CMYKcmyk(0%, 2.5%, 63.2%, 20%)
CIE-LABlab(78.57, -13.39, 60.55)
CIE-LCHlch(78.57, 62.01, 102.47°)
OKLaboklab(81.07% -0.042 0.1374)
OKLCHoklch(81.07% 0.144 107)
XYZxyz(46.5969, 54.1937, 14.6611)
Luminance0.5419 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC74B #4B50CC
analogous
#CC864B #CCC74B #91CC4B
triadic
#CCC74B #4BCCC7 #C74BCC
tetradic
#CCC74B #4BCC86 #4B50CC #CC4B91
square
#CCC74B #4BCC86 #4B50CC #CC4B91
split-complementary
#CCC74B #4B91CC #864BCC
monochromatic
#7A7723 #AAA530 #CCC74B #DAD67B #E7E5AA

Accessibility & contrast

On white

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

On black

11.84
#CCC74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC74B
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC74B#FFFFFF#000000##000000
##CCC74B1.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03B
Deuteranopia (green-blind)
#D9C553
Tritanopia (blue-blind)
#DABBAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc74b;
/* rgb */ color: rgb(204, 199, 75);
/* oklch */ color: oklch(81.1% 0.144 107.0);
Tailwind
colors: {
  custom: {
    50: '#dfd783',
    500: '#ccc74b',
    950: '#000000',
  },
}
SCSS
$custom: #ccc74b;
$custom-light: #dfd783;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc74b",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 75
  },
  "hsl": {
    "h": 57.674,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81068,
    "c": 0.14362,
    "h": 107
  },
  "luminance": 0.54192
}

Semantic roles & 50–950 ramp

primary
#CCC74B
secondary
#393C82
accent
#4EDF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC74B

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

Preview Lab → · Contrast checker → · Palette generator →

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