#CDC759#CDC759

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

Color values

HEX#CDC759
RGBrgb(205, 199, 89)
HSLhsl(57, 54%, 58%)
HSVhsv(57, 57%, 80%)
CMYKcmyk(0%, 2.9%, 56.6%, 19.6%)
CIE-LABlab(78.78, -12.02, 54.71)
CIE-LCHlch(78.78, 56.02, 102.39°)
OKLaboklab(81.29% -0.0366 0.1268)
OKLCHoklch(81.29% 0.132 106.1)
XYZxyz(47.4049, 54.5487, 17.4811)
Luminance0.5455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC759 #595FCD
analogous
#CD8D59 #CDC759 #99CD59
triadic
#CDC759 #59CDC7 #C759CD
tetradic
#CDC759 #59CD8D #595FCD #CD5999
square
#CDC759 #59CD8D #595FCD #CD5999
split-complementary
#CDC759 #5999CD #8D59CD
monochromatic
#847F28 #B3AC36 #CDC759 #DBD788 #E9E7B7

Accessibility & contrast

On white

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

On black

11.91
#CDC759 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC759
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC759#FFFFFF#000000##000000
##CDC7591.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc759;
/* rgb */ color: rgb(205, 199, 89);
/* oklch */ color: oklch(81.3% 0.132 106.1);
Tailwind
colors: {
  custom: {
    50: '#dfd78c',
    500: '#cdc759',
    950: '#000000',
  },
}
SCSS
$custom: #cdc759;
$custom-light: #dfd78c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc759",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 89
  },
  "hsl": {
    "h": 56.897,
    "s": 53.704,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81292,
    "c": 0.13196,
    "h": 106.1
  },
  "luminance": 0.54547
}

Semantic roles & 50–950 ramp

primary
#CDC759
secondary
#3F438B
accent
#52DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC759

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

Preview Lab → · Contrast checker → · Palette generator →

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