#CCC87A#CCC87A

#CCC87A is a light, moderate yellow. Relative luminance 0.556; OKLCH L 81.9% C 0.100 H 105.9°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#CCC87A
RGBrgb(204, 200, 122)
HSLhsl(57, 45%, 64%)
HSVhsv(57, 40%, 80%)
CMYKcmyk(0%, 2%, 40.2%, 20%)
CIE-LABlab(79.36, -9.92, 39.47)
CIE-LCHlch(79.36, 40.70, 104.11°)
OKLaboklab(81.86% -0.0273 0.096)
OKLCHoklch(81.86% 0.1 105.9)
XYZxyz(49.0698, 55.5522, 26.5463)
Luminance0.5555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC87A #7A7ECC
analogous
#CC9F7A #CCC87A #A7CC7A
triadic
#CCC87A #7ACCC8 #C87ACC
tetradic
#CCC87A #7ACC9F #7A7ECC #CC7AA7
square
#CCC87A #7ACC9F #7A7ECC #CC7AA7
split-complementary
#CCC87A #7AA7CC #9F7ACC
monochromatic
#938F38 #BBB64E #CCC87A #DDDAA6 #EEEDD2

Accessibility & contrast

On white

1.73
#CCC87A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.11
#CCC87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC87A
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC87A#FFFFFF#000000##000000
##CCC87A1.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C274
Deuteranopia (green-blind)
#D6C67D
Tritanopia (blue-blind)
#D7BFB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #ccc87a;
/* rgb */ color: rgb(204, 200, 122);
/* oklch */ color: oklch(81.9% 0.100 105.9);
Tailwind
colors: {
  custom: {
    50: '#ddd8a1',
    500: '#ccc87a',
    950: '#000000',
  },
}
SCSS
$custom: #ccc87a;
$custom-light: #ddd8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc87a",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 122
  },
  "hsl": {
    "h": 57.073,
    "s": 44.565,
    "l": 63.922
  },
  "oklch": {
    "l": 0.81859,
    "c": 0.09982,
    "h": 105.9
  },
  "luminance": 0.55551
}

Semantic roles & 50–950 ramp

primary
#CCC87A
secondary
#51549A
accent
#35B82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC87A

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

Preview Lab → · Contrast checker → · Palette generator →

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