#CCB74C#CCB74C

#CCB74C is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.7% C 0.128 H 98.2°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#CCB74C
RGBrgb(204, 183, 76)
HSLhsl(50, 56%, 55%)
HSVhsv(50, 63%, 80%)
CMYKcmyk(0%, 10.3%, 62.7%, 20%)
CIE-LABlab(74.34, -5.12, 55.58)
CIE-LCHlch(74.34, 55.82, 95.26°)
OKLaboklab(77.7% -0.0183 0.127)
OKLCHoklch(77.7% 0.128 98.2)
XYZxyz(43.1417, 47.2281, 13.6796)
Luminance0.4723 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB74C #4C61CC
analogous
#CC774C #CCB74C #A1CC4C
triadic
#CCB74C #4CCCB7 #B74CCC
tetradic
#CCB74C #4CCC77 #4C61CC #CC4CA1
square
#CCB74C #4CCC77 #4C61CC #CC4CA1
split-complementary
#CCB74C #4CA1CC #774CCC
monochromatic
#7B6C23 #AA9631 #CCB74C #DACA7C #E7DDAB

Accessibility & contrast

On white

2.01
#CCB74C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#CCB74C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB74C
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB74C#FFFFFF#000000##000000
##CCB74C1.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B340
Deuteranopia (green-blind)
#CDBA51
Tritanopia (blue-blind)
#DBAAA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb74c;
/* rgb */ color: rgb(204, 183, 76);
/* oklch */ color: oklch(77.7% 0.128 98.2);
Tailwind
colors: {
  custom: {
    50: '#dfcc82',
    500: '#ccb74c',
    950: '#000000',
  },
}
SCSS
$custom: #ccb74c;
$custom-light: #dfcc82;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb74c",
  "rgb": {
    "r": 204,
    "g": 183,
    "b": 76
  },
  "hsl": {
    "h": 50.156,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.77703,
    "c": 0.12828,
    "h": 98.2
  },
  "luminance": 0.47226
}

Semantic roles & 50–950 ramp

primary
#CCB74C
secondary
#9FA8D5
accent
#61DF49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB74C

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

Preview Lab → · Contrast checker → · Palette generator →

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