#CDC57F#CDC57F

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

Color values

HEX#CDC57F
RGBrgb(205, 197, 127)
HSLhsl(54, 44%, 65%)
HSVhsv(54, 38%, 80%)
CMYKcmyk(0%, 3.9%, 38%, 19.6%)
CIE-LABlab(78.72, -7.43, 36.12)
CIE-LCHlch(78.72, 36.88, 101.62°)
OKLaboklab(81.4% -0.0198 0.0886)
OKLCHoklch(81.4% 0.091 102.6)
XYZxyz(48.9746, 54.4452, 28.0037)
Luminance0.5444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC57F #7F87CD
analogous
#CD9E7F #CDC57F #AECD7F
triadic
#CDC57F #7FCDC5 #C57FCD
tetradic
#CDC57F #7FCD9E #7F87CD #CD7FAE
square
#CDC57F #7FCD9E #7F87CD #CD7FAE
split-complementary
#CDC57F #7FAECD #9E7FCD
monochromatic
#978D3B #BCB153 #CDC57F #DED9AB #EFEDD7

Accessibility & contrast

On white

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

On black

11.89
#CDC57F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC57F
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC57F#FFFFFF#000000##000000
##CDC57F1.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc57f;
/* rgb */ color: rgb(205, 197, 127);
/* oklch */ color: oklch(81.4% 0.091 102.6);
Tailwind
colors: {
  custom: {
    50: '#ddd6a5',
    500: '#cdc57f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc57f;
$custom-light: #ddd6a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc57f",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 127
  },
  "hsl": {
    "h": 53.846,
    "s": 43.82,
    "l": 65.098
  },
  "oklch": {
    "l": 0.81397,
    "c": 0.09079,
    "h": 102.6
  },
  "luminance": 0.54444
}

Semantic roles & 50–950 ramp

primary
#CDC57F
secondary
#535B9D
accent
#3DB72F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC57F

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

Preview Lab → · Contrast checker → · Palette generator →

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