#CDC879#CDC879

#CDC879 is a light, moderate yellow. Relative luminance 0.557; OKLCH L 81.9% C 0.101 H 105.3°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#CDC879
RGBrgb(205, 200, 121)
HSLhsl(56, 46%, 64%)
HSVhsv(56, 41%, 80%)
CMYKcmyk(0%, 2.4%, 41%, 19.6%)
CIE-LABlab(79.43, -9.63, 40.07)
CIE-LCHlch(79.43, 41.21, 103.51°)
OKLaboklab(81.93% -0.0266 0.0973)
OKLCHoklch(81.93% 0.101 105.3)
XYZxyz(49.2832, 55.6694, 26.2346)
Luminance0.5567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC879 #797ECD
analogous
#CD9E79 #CDC879 #A8CD79
triadic
#CDC879 #79CDC8 #C879CD
tetradic
#CDC879 #79CD9E #797ECD #CD79A8
square
#CDC879 #79CD9E #797ECD #CD79A8
split-complementary
#CDC879 #79A8CD #9E79CD
monochromatic
#948F37 #BCB64C #CDC879 #DEDAA6 #EEEDD2

Accessibility & contrast

On white

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

On black

12.13
#CDC879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC879
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC879#FFFFFF#000000##000000
##CDC8791.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C373
Deuteranopia (green-blind)
#D7C77C
Tritanopia (blue-blind)
#D8BFB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc879;
/* rgb */ color: rgb(205, 200, 121);
/* oklch */ color: oklch(81.9% 0.101 105.3);
Tailwind
colors: {
  custom: {
    50: '#ddd8a1',
    500: '#cdc879',
    950: '#000000',
  },
}
SCSS
$custom: #cdc879;
$custom-light: #ddd8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc879",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 121
  },
  "hsl": {
    "h": 56.429,
    "s": 45.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.81927,
    "c": 0.10089,
    "h": 105.3
  },
  "luminance": 0.55668
}

Semantic roles & 50–950 ramp

primary
#CDC879
secondary
#50549B
accent
#35B92D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC879

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

Preview Lab → · Contrast checker → · Palette generator →

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