#CDC257#CDC257

#CDC257 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.2% C 0.129 H 103.5°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#CDC257
RGBrgb(205, 194, 87)
HSLhsl(54, 54%, 57%)
HSVhsv(54, 58%, 80%)
CMYKcmyk(0%, 5.4%, 57.6%, 19.6%)
CIE-LABlab(77.43, -9.62, 54.10)
CIE-LCHlch(77.43, 54.95, 100.08°)
OKLaboklab(80.21% -0.03 0.1252)
OKLCHoklch(80.21% 0.129 103.5)
XYZxyz(46.1905, 52.2525, 16.6676)
Luminance0.5225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC257 #5762CD
analogous
#CD8757 #CDC257 #9DCD57
triadic
#CDC257 #57CDC2 #C257CD
tetradic
#CDC257 #57CD87 #5762CD #CD579D
square
#CDC257 #57CD87 #5762CD #CD579D
split-complementary
#CDC257 #579DCD #8757CD
monochromatic
#837A27 #B2A635 #CDC257 #DBD386 #E9E4B5

Accessibility & contrast

On white

1.83
#CDC257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#CDC257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC257
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC257#FFFFFF#000000##000000
##CDC2571.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC4C
Deuteranopia (green-blind)
#D5C25D
Tritanopia (blue-blind)
#DBB6AB
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc257;
/* rgb */ color: rgb(205, 194, 87);
/* oklch */ color: oklch(80.2% 0.129 103.5);
Tailwind
colors: {
  custom: {
    50: '#dfd48a',
    500: '#cdc257',
    950: '#000000',
  },
}
SCSS
$custom: #cdc257;
$custom-light: #dfd48a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc257",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 87
  },
  "hsl": {
    "h": 54.407,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80213,
    "c": 0.12877,
    "h": 103.5
  },
  "luminance": 0.52251
}

Semantic roles & 50–950 ramp

primary
#CDC257
secondary
#3E458A
accent
#58DD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC257

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

Preview Lab → · Contrast checker → · Palette generator →

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