#CDC57B#CDC57B

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

Color values

HEX#CDC57B
RGBrgb(205, 197, 123)
HSLhsl(54, 45%, 64%)
HSVhsv(54, 40%, 80%)
CMYKcmyk(0%, 3.9%, 40%, 19.6%)
CIE-LABlab(78.66, -7.87, 38.09)
CIE-LCHlch(78.66, 38.90, 101.68°)
OKLaboklab(81.33% -0.0213 0.0929)
OKLCHoklch(81.33% 0.095 102.9)
XYZxyz(48.7191, 54.3430, 26.6579)
Luminance0.5434 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC57B #7B83CD
analogous
#CD9C7B #CDC57B #ACCD7B
triadic
#CDC57B #7BCDC5 #C57BCD
tetradic
#CDC57B #7BCD9C #7B83CD #CD7BAC
square
#CDC57B #7BCD9C #7B83CD #CD7BAC
split-complementary
#CDC57B #7BACCD #9C7BCD
monochromatic
#958C38 #BCB14F #CDC57B #DED9A7 #EFECD4

Accessibility & contrast

On white

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

On black

11.87
#CDC57B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC57B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC57B#FFFFFF#000000##000000
##CDC57B1.001.7711.8711.87
#FFFFFF1.771.0021.0021.00
#00000011.8721.001.001.00
##00000011.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc57b;
/* rgb */ color: rgb(205, 197, 123);
/* oklch */ color: oklch(81.3% 0.095 102.9);
Tailwind
colors: {
  custom: {
    50: '#ddd6a2',
    500: '#cdc57b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc57b;
$custom-light: #ddd6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc57b",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 123
  },
  "hsl": {
    "h": 54.146,
    "s": 45.055,
    "l": 64.314
  },
  "oklch": {
    "l": 0.8133,
    "c": 0.09535,
    "h": 102.9
  },
  "luminance": 0.54342
}

Semantic roles & 50–950 ramp

primary
#CDC57B
secondary
#51589B
accent
#3BB82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC57B

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

Preview Lab → · Contrast checker → · Palette generator →

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