#CCC772#CCC772

#CCC772 is a light, moderate yellow. Relative luminance 0.549; OKLCH L 81.5% C 0.107 H 105.6°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#CCC772
RGBrgb(204, 199, 114)
HSLhsl(57, 47%, 62%)
HSVhsv(57, 44%, 80%)
CMYKcmyk(0%, 2.5%, 44.1%, 20%)
CIE-LABlab(78.98, -10.24, 43.01)
CIE-LCHlch(78.98, 44.21, 103.39°)
OKLaboklab(81.53% -0.0289 0.1035)
OKLCHoklch(81.53% 0.107 105.6)
XYZxyz(48.3635, 54.9004, 23.9655)
Luminance0.5490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC772 #7277CC
analogous
#CC9A72 #CCC772 #A4CC72
triadic
#CCC772 #72CCC7 #C772CC
tetradic
#CCC772 #72CC9A #7277CC #CC72A4
square
#CCC772 #72CC9A #7277CC #CC72A4
split-complementary
#CCC772 #72A4CC #9A72CC
monochromatic
#908B34 #BCB545 #CCC772 #DCD99F #EDEBCC

Accessibility & contrast

On white

1.75
#CCC772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#CCC772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC772
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC772#FFFFFF#000000##000000
##CCC7721.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C16B
Deuteranopia (green-blind)
#D6C576
Tritanopia (blue-blind)
#D8BDB3
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc772;
/* rgb */ color: rgb(204, 199, 114);
/* oklch */ color: oklch(81.5% 0.107 105.6);
Tailwind
colors: {
  custom: {
    50: '#ddd79c',
    500: '#ccc772',
    950: '#000000',
  },
}
SCSS
$custom: #ccc772;
$custom-light: #ddd79c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc772",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 114
  },
  "hsl": {
    "h": 56.667,
    "s": 46.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.81526,
    "c": 0.10747,
    "h": 105.6
  },
  "luminance": 0.54899
}

Semantic roles & 50–950 ramp

primary
#CCC772
secondary
#4C5096
accent
#33BA2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CCC772

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

Preview Lab → · Contrast checker → · Palette generator →

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