#CCC387#CCC387

#CCC387 is a light, moderate yellow. Relative luminance 0.536; OKLCH L 81.0% C 0.079 H 100.7°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#CCC387
RGBrgb(204, 195, 135)
HSLhsl(52, 40%, 66%)
HSVhsv(52, 34%, 80%)
CMYKcmyk(0%, 4.4%, 33.8%, 20%)
CIE-LABlab(78.24, -5.85, 31.34)
CIE-LCHlch(78.24, 31.88, 100.58°)
OKLaboklab(81.04% -0.0147 0.0778)
OKLCHoklch(81.04% 0.079 100.7)
XYZxyz(48.7907, 53.6180, 30.6961)
Luminance0.5362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC387 #8790CC
analogous
#CCA187 #CCC387 #B3CC87
triadic
#CCC387 #87CCC3 #C387CC
tetradic
#CCC387 #87CCA1 #8790CC #CC87B3
square
#CCC387 #87CCA1 #8790CC #CC87B3
split-complementary
#CCC387 #87B3CC #A187CC
monochromatic
#988D41 #BAAE5C #CCC387 #DED8B2 #F1EEDD

Accessibility & contrast

On white

1.79
#CCC387 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#CCC387 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC387
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC387#FFFFFF#000000##000000
##CCC3871.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBF83
Deuteranopia (green-blind)
#D1C389
Tritanopia (blue-blind)
#D6BBB4
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #ccc387;
/* rgb */ color: rgb(204, 195, 135);
/* oklch */ color: oklch(81.0% 0.079 100.7);
Tailwind
colors: {
  custom: {
    50: '#dcd5aa',
    500: '#ccc387',
    950: '#000000',
  },
}
SCSS
$custom: #ccc387;
$custom-light: #dcd5aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc387",
  "rgb": {
    "r": 204,
    "g": 195,
    "b": 135
  },
  "hsl": {
    "h": 52.174,
    "s": 40.351,
    "l": 66.471
  },
  "oklch": {
    "l": 0.81036,
    "c": 0.07919,
    "h": 100.7
  },
  "luminance": 0.53617
}

Semantic roles & 50–950 ramp

primary
#CCC387
secondary
#59629F
accent
#43B332
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CCC387

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

Preview Lab → · Contrast checker → · Palette generator →

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