#CDC345#CDC345

#CDC345 is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.3% C 0.144 H 104.8°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#CDC345
RGBrgb(205, 195, 69)
HSLhsl(56, 58%, 54%)
HSVhsv(56, 66%, 80%)
CMYKcmyk(0%, 4.9%, 66.3%, 19.6%)
CIE-LABlab(77.54, -11.30, 61.95)
CIE-LCHlch(77.54, 62.97, 100.34°)
OKLaboklab(80.25% -0.0367 0.1394)
OKLCHoklch(80.25% 0.144 104.8)
XYZxyz(45.7679, 52.4407, 13.3403)
Luminance0.5244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC345 #454FCD
analogous
#CD7F45 #CDC345 #93CD45
triadic
#CDC345 #45CDC3 #C345CD
tetradic
#CDC345 #45CD7F #454FCD #CD4593
square
#CDC345 #45CD7F #454FCD #CD4593
split-complementary
#CDC345 #4593CD #7F45CD
monochromatic
#777120 #A89F2D #CDC345 #DAD375 #E7E2A5

Accessibility & contrast

On white

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

On black

11.49
#CDC345 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC345
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC345#FFFFFF#000000##000000
##CDC3451.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC34
Deuteranopia (green-blind)
#D7C24D
Tritanopia (blue-blind)
#DCB6A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cdc345;
/* rgb */ color: rgb(205, 195, 69);
/* oklch */ color: oklch(80.3% 0.144 104.8);
Tailwind
colors: {
  custom: {
    50: '#e0d47f',
    500: '#cdc345',
    950: '#000000',
  },
}
SCSS
$custom: #cdc345;
$custom-light: #e0d47f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc345",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 69
  },
  "hsl": {
    "h": 55.588,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.80253,
    "c": 0.14411,
    "h": 104.8
  },
  "luminance": 0.52439
}

Semantic roles & 50–950 ramp

primary
#CDC345
secondary
#363C80
accent
#52E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC345

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

Preview Lab → · Contrast checker → · Palette generator →

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