#CDC57D#CDC57D

#CDC57D is a light, moderate yellow. Relative luminance 0.544; OKLCH L 81.4% C 0.093 H 102.8°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#CDC57D
RGBrgb(205, 197, 125)
HSLhsl(54, 44%, 65%)
HSVhsv(54, 39%, 80%)
CMYKcmyk(0%, 3.9%, 39%, 19.6%)
CIE-LABlab(78.69, -7.65, 37.11)
CIE-LCHlch(78.69, 37.89, 101.65°)
OKLaboklab(81.36% -0.0206 0.0908)
OKLCHoklch(81.36% 0.093 102.8)
XYZxyz(48.8456, 54.3936, 27.3240)
Luminance0.5439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC57D #7D85CD
analogous
#CD9D7D #CDC57D #ADCD7D
triadic
#CDC57D #7DCDC5 #C57DCD
tetradic
#CDC57D #7DCD9D #7D85CD #CD7DAD
square
#CDC57D #7DCD9D #7D85CD #CD7DAD
split-complementary
#CDC57D #7DADCD #9D7DCD
monochromatic
#968D3A #BCB151 #CDC57D #DED9A9 #EFECD5

Accessibility & contrast

On white

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

On black

11.88
#CDC57D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC57D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC57D#FFFFFF#000000##000000
##CDC57D1.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1C078
Deuteranopia (green-blind)
#D4C580
Tritanopia (blue-blind)
#D8BCB3
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc57d;
/* rgb */ color: rgb(205, 197, 125);
/* oklch */ color: oklch(81.4% 0.093 102.8);
Tailwind
colors: {
  custom: {
    50: '#ddd6a3',
    500: '#cdc57d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc57d;
$custom-light: #ddd6a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc57d",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 125
  },
  "hsl": {
    "h": 54,
    "s": 44.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.81363,
    "c": 0.09308,
    "h": 102.8
  },
  "luminance": 0.54392
}

Semantic roles & 50–950 ramp

primary
#CDC57D
secondary
#52599C
accent
#3CB82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC57D

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

Preview Lab → · Contrast checker → · Palette generator →

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