#CDC45C#CDC45C

#CDC45C is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.7% C 0.126 H 104.3°. Best body text is #000000 at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#CDC45C
RGBrgb(205, 196, 92)
HSLhsl(55, 53%, 58%)
HSVhsv(55, 55%, 80%)
CMYKcmyk(0%, 4.4%, 55.1%, 19.6%)
CIE-LABlab(78.01, -10.26, 52.47)
CIE-LCHlch(78.01, 53.46, 101.06°)
OKLaboklab(80.69% -0.0312 0.1223)
OKLCHoklch(80.69% 0.126 104.3)
XYZxyz(46.8500, 53.2332, 17.9303)
Luminance0.5323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC45C #5C65CD
analogous
#CD8B5C #CDC45C #9DCD5C
triadic
#CDC45C #5CCDC4 #C45CCD
tetradic
#CDC45C #5CCD8B #5C65CD #CD5C9D
square
#CDC45C #5CCD8B #5C65CD #CD5C9D
split-complementary
#CDC45C #5C9DCD #8B5CCD
monochromatic
#867E29 #B4AA37 #CDC45C #DBD58B #EAE6BA

Accessibility & contrast

On white

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

On black

11.65
#CDC45C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC45C
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC45C#FFFFFF#000000##000000
##CDC45C1.001.8011.6511.65
#FFFFFF1.801.0021.0021.00
#00000011.6521.001.001.00
##00000011.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE52
Deuteranopia (green-blind)
#D6C361
Tritanopia (blue-blind)
#DBB8AD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc45c;
/* rgb */ color: rgb(205, 196, 92);
/* oklch */ color: oklch(80.7% 0.126 104.3);
Tailwind
colors: {
  custom: {
    50: '#dfd58d',
    500: '#cdc45c',
    950: '#000000',
  },
}
SCSS
$custom: #cdc45c;
$custom-light: #dfd58d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc45c",
  "rgb": {
    "r": 205,
    "g": 196,
    "b": 92
  },
  "hsl": {
    "h": 55.221,
    "s": 53.052,
    "l": 58.235
  },
  "oklch": {
    "l": 0.80691,
    "c": 0.12624,
    "h": 104.3
  },
  "luminance": 0.53232
}

Semantic roles & 50–950 ramp

primary
#CDC45C
secondary
#40478D
accent
#57DC4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC45C

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

Preview Lab → · Contrast checker → · Palette generator →

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