#CDC159#CDC159

#CDC159 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.126 H 102.8°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#CDC159
RGBrgb(205, 193, 89)
HSLhsl(54, 54%, 58%)
HSVhsv(54, 57%, 80%)
CMYKcmyk(0%, 5.9%, 56.6%, 19.6%)
CIE-LABlab(77.19, -8.96, 52.91)
CIE-LCHlch(77.19, 53.66, 99.61°)
OKLaboklab(80.03% -0.0278 0.1229)
OKLCHoklch(80.03% 0.126 102.8)
XYZxyz(46.0515, 51.8420, 17.0300)
Luminance0.5184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC159 #5965CD
analogous
#CD8759 #CDC159 #9FCD59
triadic
#CDC159 #59CDC1 #C159CD
tetradic
#CDC159 #59CD87 #5965CD #CD599F
square
#CDC159 #59CD87 #5965CD #CD599F
split-complementary
#CDC159 #599FCD #8759CD
monochromatic
#847A28 #B3A636 #CDC159 #DBD388 #E9E4B7

Accessibility & contrast

On white

1.85
#CDC159 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#CDC159 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC159
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC159#FFFFFF#000000##000000
##CDC1591.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB4E
Deuteranopia (green-blind)
#D4C15E
Tritanopia (blue-blind)
#DBB5AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc159;
/* rgb */ color: rgb(205, 193, 89);
/* oklch */ color: oklch(80.0% 0.126 102.8);
Tailwind
colors: {
  custom: {
    50: '#dfd38b',
    500: '#cdc159',
    950: '#000000',
  },
}
SCSS
$custom: #cdc159;
$custom-light: #dfd38b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc159",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 89
  },
  "hsl": {
    "h": 53.793,
    "s": 53.704,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80025,
    "c": 0.12603,
    "h": 102.8
  },
  "luminance": 0.5184
}

Semantic roles & 50–950 ramp

primary
#CDC159
secondary
#3F478B
accent
#5ADD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC159

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

Preview Lab → · Contrast checker → · Palette generator →

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