#CDC786#CDC786

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

Color values

HEX#CDC786
RGBrgb(205, 199, 134)
HSLhsl(55, 42%, 66%)
HSVhsv(55, 35%, 80%)
CMYKcmyk(0%, 2.9%, 34.6%, 19.6%)
CIE-LABlab(79.36, -7.65, 33.34)
CIE-LCHlch(79.36, 34.21, 102.92°)
OKLaboklab(81.94% -0.0199 0.0825)
OKLCHoklch(81.94% 0.085 103.6)
XYZxyz(49.9039, 55.5483, 30.6427)
Luminance0.5555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC786 #868CCD
analogous
#CDA486 #CDC786 #B0CD86
triadic
#CDC786 #86CDC7 #C786CD
tetradic
#CDC786 #86CDA4 #868CCD #CD86B0
square
#CDC786 #86CDA4 #868CCD #CD86B0
split-complementary
#CDC786 #86B0CD #A486CD
monochromatic
#99923F #BBB35B #CDC786 #DFDBB1 #F1EFDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC786#FFFFFF#000000##000000
##CDC7861.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)
#D2C381
Deuteranopia (green-blind)
#D4C689
Tritanopia (blue-blind)
#D7BFB6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc786;
/* rgb */ color: rgb(205, 199, 134);
/* oklch */ color: oklch(81.9% 0.085 103.6);
Tailwind
colors: {
  custom: {
    50: '#ddd7aa',
    500: '#cdc786',
    950: '#000000',
  },
}
SCSS
$custom: #cdc786;
$custom-light: #ddd7aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc786",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 134
  },
  "hsl": {
    "h": 54.93,
    "s": 41.52,
    "l": 66.471
  },
  "oklch": {
    "l": 0.81936,
    "c": 0.08484,
    "h": 103.6
  },
  "luminance": 0.55547
}

Semantic roles & 50–950 ramp

primary
#CDC786
secondary
#585EA0
accent
#3CB531
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC786

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

Preview Lab → · Contrast checker → · Palette generator →

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