#CDC579#CDC579

#CDC579 is a light, moderate yellow. Relative luminance 0.543; OKLCH L 81.3% C 0.098 H 103.1°. Best body text is #000000 at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#CDC579
RGBrgb(205, 197, 121)
HSLhsl(54, 46%, 64%)
HSVhsv(54, 41%, 80%)
CMYKcmyk(0%, 3.9%, 41%, 19.6%)
CIE-LABlab(78.63, -8.09, 39.07)
CIE-LCHlch(78.63, 39.90, 101.69°)
OKLaboklab(81.3% -0.0221 0.0951)
OKLCHoklch(81.3% 0.098 103.1)
XYZxyz(48.5952, 54.2934, 26.0053)
Luminance0.5429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC579 #7981CD
analogous
#CD9B79 #CDC579 #ABCD79
triadic
#CDC579 #79CDC5 #C579CD
tetradic
#CDC579 #79CD9B #7981CD #CD79AB
square
#CDC579 #79CD9B #7981CD #CD79AB
split-complementary
#CDC579 #79ABCD #9B79CD
monochromatic
#948B37 #BCB24C #CDC579 #DED8A6 #EEECD2

Accessibility & contrast

On white

1.77
#CDC579 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.86
#CDC579 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC579
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC579#FFFFFF#000000##000000
##CDC5791.001.7711.8611.86
#FFFFFF1.771.0021.0021.00
#00000011.8621.001.001.00
##00000011.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2C073
Deuteranopia (green-blind)
#D4C57C
Tritanopia (blue-blind)
#D8BCB2
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc579;
/* rgb */ color: rgb(205, 197, 121);
/* oklch */ color: oklch(81.3% 0.098 103.1);
Tailwind
colors: {
  custom: {
    50: '#ddd6a1',
    500: '#cdc579',
    950: '#000000',
  },
}
SCSS
$custom: #cdc579;
$custom-light: #ddd6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc579",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 121
  },
  "hsl": {
    "h": 54.286,
    "s": 45.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.81298,
    "c": 0.0976,
    "h": 103.1
  },
  "luminance": 0.54292
}

Semantic roles & 50–950 ramp

primary
#CDC579
secondary
#50579B
accent
#3AB92D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC579

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

Preview Lab → · Contrast checker → · Palette generator →

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