#CDC874#CDC874

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

Color values

HEX#CDC874
RGBrgb(205, 200, 116)
HSLhsl(57, 47%, 63%)
HSVhsv(57, 43%, 80%)
CMYKcmyk(0%, 2.4%, 43.4%, 19.6%)
CIE-LABlab(79.36, -10.15, 42.50)
CIE-LCHlch(79.36, 43.69, 103.43°)
OKLaboklab(81.85% -0.0285 0.1025)
OKLCHoklch(81.85% 0.106 105.5)
XYZxyz(48.9845, 55.5499, 24.6614)
Luminance0.5555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC874 #7479CD
analogous
#CD9B74 #CDC874 #A5CD74
triadic
#CDC874 #74CDC8 #C874CD
tetradic
#CDC874 #74CD9B #7479CD #CD74A5
square
#CDC874 #74CD9B #7479CD #CD74A5
split-complementary
#CDC874 #74A5CD #9B74CD
monochromatic
#928D35 #BDB647 #CDC874 #DDDAA1 #EDECCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC874#FFFFFF#000000##000000
##CDC8741.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)
#D5C26D
Deuteranopia (green-blind)
#D7C678
Tritanopia (blue-blind)
#D9BEB4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc874;
/* rgb */ color: rgb(205, 200, 116);
/* oklch */ color: oklch(81.9% 0.106 105.5);
Tailwind
colors: {
  custom: {
    50: '#ded89d',
    500: '#cdc874',
    950: '#000000',
  },
}
SCSS
$custom: #cdc874;
$custom-light: #ded89d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc874",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 116
  },
  "hsl": {
    "h": 56.629,
    "s": 47.09,
    "l": 62.941
  },
  "oklch": {
    "l": 0.81851,
    "c": 0.10637,
    "h": 105.5
  },
  "luminance": 0.55549
}

Semantic roles & 50–950 ramp

primary
#CDC874
secondary
#4D5198
accent
#33BA2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC874

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

Preview Lab → · Contrast checker → · Palette generator →

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