#CDC873#CDC873

#CDC873 is a light, moderate yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.107 H 105.6°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#CDC873
RGBrgb(205, 200, 115)
HSLhsl(57, 47%, 63%)
HSVhsv(57, 44%, 80%)
CMYKcmyk(0%, 2.4%, 43.9%, 19.6%)
CIE-LABlab(79.34, -10.25, 42.98)
CIE-LCHlch(79.34, 44.18, 103.41°)
OKLaboklab(81.84% -0.0289 0.1035)
OKLCHoklch(81.84% 0.107 105.6)
XYZxyz(48.9266, 55.5268, 24.3567)
Luminance0.5553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC873 #7378CD
analogous
#CD9B73 #CDC873 #A5CD73
triadic
#CDC873 #73CDC8 #C873CD
tetradic
#CDC873 #73CD9B #7378CD #CD73A5
square
#CDC873 #73CD9B #7378CD #CD73A5
split-complementary
#CDC873 #73A5CD #9B73CD
monochromatic
#928C34 #BDB646 #CDC873 #DDDAA0 #EDEBCD

Accessibility & contrast

On white

1.73
#CDC873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.11
#CDC873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC873
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC873#FFFFFF#000000##000000
##CDC8731.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C26C
Deuteranopia (green-blind)
#D7C677
Tritanopia (blue-blind)
#D9BEB4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc873;
/* rgb */ color: rgb(205, 200, 115);
/* oklch */ color: oklch(81.8% 0.107 105.6);
Tailwind
colors: {
  custom: {
    50: '#ded89d',
    500: '#cdc873',
    950: '#000000',
  },
}
SCSS
$custom: #cdc873;
$custom-light: #ded89d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc873",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 115
  },
  "hsl": {
    "h": 56.667,
    "s": 47.368,
    "l": 62.745
  },
  "oklch": {
    "l": 0.81836,
    "c": 0.10745,
    "h": 105.6
  },
  "luminance": 0.55525
}

Semantic roles & 50–950 ramp

primary
#CDC873
secondary
#4C5098
accent
#33BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC873

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

Preview Lab → · Contrast checker → · Palette generator →

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