#CDC757#CDC757

#CDC757 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.3% C 0.134 H 106.2°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#CDC757
RGBrgb(205, 199, 87)
HSLhsl(57, 54%, 57%)
HSVhsv(57, 58%, 80%)
CMYKcmyk(0%, 2.9%, 57.6%, 19.6%)
CIE-LABlab(78.76, -12.17, 55.59)
CIE-LCHlch(78.76, 56.91, 102.34°)
OKLaboklab(81.27% -0.0372 0.1284)
OKLCHoklch(81.27% 0.134 106.2)
XYZxyz(47.3220, 54.5156, 17.0448)
Luminance0.5451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC757 #575DCD
analogous
#CD8C57 #CDC757 #98CD57
triadic
#CDC757 #57CDC7 #C757CD
tetradic
#CDC757 #57CD8C #575DCD #CD5798
square
#CDC757 #57CD8C #575DCD #CD5798
split-complementary
#CDC757 #5798CD #8C57CD
monochromatic
#837E27 #B2AC35 #CDC757 #DBD786 #E9E6B5

Accessibility & contrast

On white

1.76
#CDC757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#CDC757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC757
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC757#FFFFFF#000000##000000
##CDC7571.001.7611.9011.90
#FFFFFF1.761.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C04B
Deuteranopia (green-blind)
#D9C55D
Tritanopia (blue-blind)
#DBBBAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc757;
/* rgb */ color: rgb(205, 199, 87);
/* oklch */ color: oklch(81.3% 0.134 106.2);
Tailwind
colors: {
  custom: {
    50: '#dfd78a',
    500: '#cdc757',
    950: '#000000',
  },
}
SCSS
$custom: #cdc757;
$custom-light: #dfd78a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc757",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 87
  },
  "hsl": {
    "h": 56.949,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81271,
    "c": 0.13372,
    "h": 106.2
  },
  "luminance": 0.54514
}

Semantic roles & 50–950 ramp

primary
#CDC757
secondary
#3E428A
accent
#52DD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC757

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

Preview Lab → · Contrast checker → · Palette generator →

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