#CDC871#CDC871

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

Color values

HEX#CDC871
RGBrgb(205, 200, 113)
HSLhsl(57, 48%, 62%)
HSVhsv(57, 45%, 80%)
CMYKcmyk(0%, 2.4%, 44.9%, 19.6%)
CIE-LABlab(79.32, -10.44, 43.94)
CIE-LCHlch(79.32, 45.16, 103.37°)
OKLaboklab(81.81% -0.0296 0.1055)
OKLCHoklch(81.81% 0.11 105.7)
XYZxyz(48.8128, 55.4812, 23.7572)
Luminance0.5548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC871 #7176CD
analogous
#CD9A71 #CDC871 #A4CD71
triadic
#CDC871 #71CDC8 #C871CD
tetradic
#CDC871 #71CD9A #7176CD #CD71A4
square
#CDC871 #71CD9A #7176CD #CD71A4
split-complementary
#CDC871 #71A4CD #9A71CD
monochromatic
#918C33 #BDB644 #CDC871 #DDDA9E #EDEBCC

Accessibility & contrast

On white

1.74
#CDC871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#CDC871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC871
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC871#FFFFFF#000000##000000
##CDC8711.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C26A
Deuteranopia (green-blind)
#D8C675
Tritanopia (blue-blind)
#D9BEB3
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc871;
/* rgb */ color: rgb(205, 200, 113);
/* oklch */ color: oklch(81.8% 0.110 105.7);
Tailwind
colors: {
  custom: {
    50: '#ded89b',
    500: '#cdc871',
    950: '#000000',
  },
}
SCSS
$custom: #cdc871;
$custom-light: #ded89b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc871",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 56.739,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.81807,
    "c": 0.10959,
    "h": 105.7
  },
  "luminance": 0.5548
}

Semantic roles & 50–950 ramp

primary
#CDC871
secondary
#4B4F97
accent
#32BB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC871

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

Preview Lab → · Contrast checker → · Palette generator →

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