#CDC259#CDC259

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

Color values

HEX#CDC259
RGBrgb(205, 194, 89)
HSLhsl(54, 54%, 58%)
HSVhsv(54, 57%, 80%)
CMYKcmyk(0%, 5.4%, 56.6%, 19.6%)
CIE-LABlab(77.45, -9.47, 53.21)
CIE-LCHlch(77.45, 54.05, 100.09°)
OKLaboklab(80.24% -0.0293 0.1236)
OKLCHoklch(80.24% 0.127 103.3)
XYZxyz(46.2733, 52.2856, 17.1039)
Luminance0.5228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC259 #5964CD
analogous
#CD8859 #CDC259 #9ECD59
triadic
#CDC259 #59CDC2 #C259CD
tetradic
#CDC259 #59CD88 #5964CD #CD599E
square
#CDC259 #59CD88 #5964CD #CD599E
split-complementary
#CDC259 #599ECD #8859CD
monochromatic
#847B28 #B3A736 #CDC259 #DBD388 #E9E5B7

Accessibility & contrast

On white

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

On black

11.46
#CDC259 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC259
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC259#FFFFFF#000000##000000
##CDC2591.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc259;
/* rgb */ color: rgb(205, 194, 89);
/* oklch */ color: oklch(80.2% 0.127 103.3);
Tailwind
colors: {
  custom: {
    50: '#dfd48b',
    500: '#cdc259',
    950: '#000000',
  },
}
SCSS
$custom: #cdc259;
$custom-light: #dfd48b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc259",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 89
  },
  "hsl": {
    "h": 54.31,
    "s": 53.704,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80235,
    "c": 0.127,
    "h": 103.3
  },
  "luminance": 0.52284
}

Semantic roles & 50–950 ramp

primary
#CDC259
secondary
#3F468B
accent
#59DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC259

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

Preview Lab → · Contrast checker → · Palette generator →

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