#CDC45F#CDC45F

#CDC45F is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.7% C 0.123 H 104.2°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#CDC45F
RGBrgb(205, 196, 95)
HSLhsl(55, 52%, 59%)
HSVhsv(55, 54%, 80%)
CMYKcmyk(0%, 4.4%, 53.7%, 19.6%)
CIE-LABlab(78.04, -10.02, 51.10)
CIE-LCHlch(78.04, 52.08, 101.09°)
OKLaboklab(80.73% -0.0302 0.1197)
OKLCHoklch(80.73% 0.123 104.2)
XYZxyz(46.9837, 53.2867, 18.6347)
Luminance0.5329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC45F #5F68CD
analogous
#CD8D5F #CDC45F #9FCD5F
triadic
#CDC45F #5FCDC4 #C45FCD
tetradic
#CDC45F #5FCD8D #5F68CD #CD5F9F
square
#CDC45F #5FCD8D #5F68CD #CD5F9F
split-complementary
#CDC45F #5F9FCD #8D5FCD
monochromatic
#87802A #B6AC39 #CDC45F #DCD58E #EAE6BC

Accessibility & contrast

On white

1.80
#CDC45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#CDC45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC45F
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC45F#FFFFFF#000000##000000
##CDC45F1.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE55
Deuteranopia (green-blind)
#D6C364
Tritanopia (blue-blind)
#DAB9AD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc45f;
/* rgb */ color: rgb(205, 196, 95);
/* oklch */ color: oklch(80.7% 0.123 104.2);
Tailwind
colors: {
  custom: {
    50: '#ded58f',
    500: '#cdc45f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc45f;
$custom-light: #ded58f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc45f",
  "rgb": {
    "r": 205,
    "g": 196,
    "b": 95
  },
  "hsl": {
    "h": 55.091,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.80726,
    "c": 0.12345,
    "h": 104.2
  },
  "luminance": 0.53285
}

Semantic roles & 50–950 ramp

primary
#CDC45F
secondary
#42488E
accent
#58DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC45F

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

Preview Lab → · Contrast checker → · Palette generator →

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