#CCC77E#CCC77E

#CCC77E is a light, moderate yellow. Relative luminance 0.552; OKLCH L 81.7% C 0.094 H 104.9°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#CCC77E
RGBrgb(204, 199, 126)
HSLhsl(56, 43%, 65%)
HSVhsv(56, 38%, 80%)
CMYKcmyk(0%, 2.5%, 38.2%, 20%)
CIE-LABlab(79.15, -8.97, 37.17)
CIE-LCHlch(79.15, 38.24, 103.56°)
OKLaboklab(81.71% -0.0242 0.091)
OKLCHoklch(81.71% 0.094 104.9)
XYZxyz(49.0919, 55.1917, 27.8016)
Luminance0.5519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC77E #7E83CC
analogous
#CCA07E #CCC77E #AACC7E
triadic
#CCC77E #7ECCC7 #C77ECC
tetradic
#CCC77E #7ECCA0 #7E83CC #CC7EAA
square
#CCC77E #7ECCA0 #7E83CC #CC7EAA
split-complementary
#CCC77E #7EAACC #A07ECC
monochromatic
#958F3B #BBB452 #CCC77E #DDDAAA #EFEDD6

Accessibility & contrast

On white

1.74
#CCC77E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.04
#CCC77E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC77E
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC77E#FFFFFF#000000##000000
##CCC77E1.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C279
Deuteranopia (green-blind)
#D5C681
Tritanopia (blue-blind)
#D7BEB5
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc77e;
/* rgb */ color: rgb(204, 199, 126);
/* oklch */ color: oklch(81.7% 0.094 104.9);
Tailwind
colors: {
  custom: {
    50: '#ddd7a4',
    500: '#ccc77e',
    950: '#000000',
  },
}
SCSS
$custom: #ccc77e;
$custom-light: #ddd7a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc77e",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 126
  },
  "hsl": {
    "h": 56.154,
    "s": 43.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.81714,
    "c": 0.09415,
    "h": 104.9
  },
  "luminance": 0.55191
}

Semantic roles & 50–950 ramp

primary
#CCC77E
secondary
#53589B
accent
#38B62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC77E

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

Preview Lab → · Contrast checker → · Palette generator →

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