#CCC87E#CCC87E

#CCC87E is a light, moderate yellow. Relative luminance 0.557; OKLCH L 81.9% C 0.095 H 105.6°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#CCC87E
RGBrgb(204, 200, 126)
HSLhsl(57, 43%, 65%)
HSVhsv(57, 38%, 80%)
CMYKcmyk(0%, 2%, 38.2%, 20%)
CIE-LABlab(79.42, -9.48, 37.51)
CIE-LCHlch(79.42, 38.69, 104.18°)
OKLaboklab(81.92% -0.0257 0.0918)
OKLCHoklch(81.92% 0.095 105.6)
XYZxyz(49.3227, 55.6534, 27.8786)
Luminance0.5565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC87E #7E82CC
analogous
#CCA17E #CCC87E #A9CC7E
triadic
#CCC87E #7ECCC8 #C87ECC
tetradic
#CCC87E #7ECCA1 #7E82CC #CC7EA9
square
#CCC87E #7ECCA1 #7E82CC #CC7EA9
split-complementary
#CCC87E #7EA9CC #A17ECC
monochromatic
#95903B #BBB552 #CCC87E #DDDBAA #EFEDD6

Accessibility & contrast

On white

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

On black

12.13
#CCC87E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC87E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC87E#FFFFFF#000000##000000
##CCC87E1.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C378
Deuteranopia (green-blind)
#D6C681
Tritanopia (blue-blind)
#D7BFB6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #ccc87e;
/* rgb */ color: rgb(204, 200, 126);
/* oklch */ color: oklch(81.9% 0.095 105.6);
Tailwind
colors: {
  custom: {
    50: '#ddd8a4',
    500: '#ccc87e',
    950: '#000000',
  },
}
SCSS
$custom: #ccc87e;
$custom-light: #ddd8a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc87e",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 126
  },
  "hsl": {
    "h": 56.923,
    "s": 43.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.81924,
    "c": 0.09529,
    "h": 105.6
  },
  "luminance": 0.55652
}

Semantic roles & 50–950 ramp

primary
#CCC87E
secondary
#53579B
accent
#36B62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC87E

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

Preview Lab → · Contrast checker → · Palette generator →

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