#CDC782#CDC782

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

Color values

HEX#CDC782
RGBrgb(205, 199, 130)
HSLhsl(55, 43%, 66%)
HSVhsv(55, 37%, 80%)
CMYKcmyk(0%, 2.9%, 36.6%, 19.6%)
CIE-LABlab(79.29, -8.12, 35.32)
CIE-LCHlch(79.29, 36.24, 102.94°)
OKLaboklab(81.87% -0.0215 0.0869)
OKLCHoklch(81.87% 0.09 103.9)
XYZxyz(49.6302, 55.4389, 29.2011)
Luminance0.5544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC782 #8288CD
analogous
#CDA182 #CDC782 #ADCD82
triadic
#CDC782 #82CDC7 #C782CD
tetradic
#CDC782 #82CDA1 #8288CD #CD82AD
square
#CDC782 #82CDA1 #8288CD #CD82AD
split-complementary
#CDC782 #82ADCD #A182CD
monochromatic
#98913D #BCB356 #CDC782 #DEDBAE #F0EED9

Accessibility & contrast

On white

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

On black

12.09
#CDC782 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC782
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC782#FFFFFF#000000##000000
##CDC7821.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C27D
Deuteranopia (green-blind)
#D5C685
Tritanopia (blue-blind)
#D7BEB6
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc782;
/* rgb */ color: rgb(205, 199, 130);
/* oklch */ color: oklch(81.9% 0.090 103.9);
Tailwind
colors: {
  custom: {
    50: '#ddd7a7',
    500: '#cdc782',
    950: '#000000',
  },
}
SCSS
$custom: #cdc782;
$custom-light: #ddd7a7;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc782",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 130
  },
  "hsl": {
    "h": 55.2,
    "s": 42.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.81866,
    "c": 0.08953,
    "h": 103.9
  },
  "luminance": 0.55438
}

Semantic roles & 50–950 ramp

primary
#CDC782
secondary
#555B9E
accent
#3AB630
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC782

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

Preview Lab → · Contrast checker → · Palette generator →

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