#CCC786#CCC786

#CCC786 is a light, moderate yellow. Relative luminance 0.554; OKLCH L 81.9% C 0.085 H 104.4°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#CCC786
RGBrgb(204, 199, 134)
HSLhsl(56, 41%, 66%)
HSVhsv(56, 34%, 80%)
CMYKcmyk(0%, 2.5%, 34.3%, 20%)
CIE-LABlab(79.27, -8.04, 33.22)
CIE-LCHlch(79.27, 34.18, 103.61°)
OKLaboklab(81.85% -0.021 0.0822)
OKLCHoklch(81.85% 0.085 104.4)
XYZxyz(49.6289, 55.4065, 30.6298)
Luminance0.5541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC786 #868BCC
analogous
#CCA486 #CCC786 #AECC86
triadic
#CCC786 #86CCC7 #C786CC
tetradic
#CCC786 #86CCA4 #868BCC #CC86AE
square
#CCC786 #86CCA4 #868BCC #CC86AE
split-complementary
#CCC786 #86AECC #A486CC
monochromatic
#989140 #BAB35B #CCC786 #DEDBB1 #F0EFDC

Accessibility & contrast

On white

1.74
#CCC786 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#CCC786 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC786
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC786#FFFFFF#000000##000000
##CCC7861.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2C281
Deuteranopia (green-blind)
#D4C689
Tritanopia (blue-blind)
#D6BFB6
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc786;
/* rgb */ color: rgb(204, 199, 134);
/* oklch */ color: oklch(81.9% 0.085 104.4);
Tailwind
colors: {
  custom: {
    50: '#dcd7aa',
    500: '#ccc786',
    950: '#000000',
  },
}
SCSS
$custom: #ccc786;
$custom-light: #dcd7aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc786",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 134
  },
  "hsl": {
    "h": 55.714,
    "s": 40.698,
    "l": 66.275
  },
  "oklch": {
    "l": 0.81852,
    "c": 0.08483,
    "h": 104.4
  },
  "luminance": 0.55405
}

Semantic roles & 50–950 ramp

primary
#CCC786
secondary
#585D9E
accent
#3BB432
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CCC786

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

Preview Lab → · Contrast checker → · Palette generator →

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