#CCC187#CCC187

#CCC187 is a light, moderate yellow. Relative luminance 0.527; OKLCH L 80.6% C 0.077 H 98.7°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#CCC187
RGBrgb(204, 193, 135)
HSLhsl(50, 40%, 66%)
HSVhsv(50, 34%, 80%)
CMYKcmyk(0%, 5.4%, 33.8%, 20%)
CIE-LABlab(77.71, -4.81, 30.65)
CIE-LCHlch(77.71, 31.02, 98.93°)
OKLaboklab(80.62% -0.0117 0.0762)
OKLCHoklch(80.62% 0.077 98.7)
XYZxyz(48.3456, 52.7278, 30.5477)
Luminance0.5273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC187 #8792CC
analogous
#CC9F87 #CCC187 #B5CC87
triadic
#CCC187 #87CCC1 #C187CC
tetradic
#CCC187 #87CC9F #8792CC #CC87B5
square
#CCC187 #87CC9F #8792CC #CC87B5
split-complementary
#CCC187 #87B5CC #9F87CC
monochromatic
#988A41 #BAAB5C #CCC187 #DED7B2 #F1EDDD

Accessibility & contrast

On white

1.82
#CCC187 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#CCC187 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC187
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC187#FFFFFF#000000##000000
##CCC1871.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBE83
Deuteranopia (green-blind)
#CFC289
Tritanopia (blue-blind)
#D6B9B2
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #ccc187;
/* rgb */ color: rgb(204, 193, 135);
/* oklch */ color: oklch(80.6% 0.077 98.7);
Tailwind
colors: {
  custom: {
    50: '#dcd3aa',
    500: '#ccc187',
    950: '#000000',
  },
}
SCSS
$custom: #ccc187;
$custom-light: #dcd3aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc187",
  "rgb": {
    "r": 204,
    "g": 193,
    "b": 135
  },
  "hsl": {
    "h": 50.435,
    "s": 40.351,
    "l": 66.471
  },
  "oklch": {
    "l": 0.80621,
    "c": 0.07708,
    "h": 98.7
  },
  "luminance": 0.52727
}

Semantic roles & 50–950 ramp

primary
#CCC187
secondary
#59649F
accent
#47B332
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CCC187

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

Preview Lab → · Contrast checker → · Palette generator →

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