#CDC875#CDC875

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

Color values

HEX#CDC875
RGBrgb(205, 200, 117)
HSLhsl(57, 47%, 63%)
HSVhsv(57, 43%, 80%)
CMYKcmyk(0%, 2.4%, 42.9%, 19.6%)
CIE-LABlab(79.37, -10.04, 42.01)
CIE-LCHlch(79.37, 43.20, 103.44°)
OKLaboklab(81.87% -0.0281 0.1015)
OKLCHoklch(81.87% 0.105 105.5)
XYZxyz(49.0430, 55.5733, 24.9694)
Luminance0.5557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC875 #757ACD
analogous
#CD9C75 #CDC875 #A6CD75
triadic
#CDC875 #75CDC8 #C875CD
tetradic
#CDC875 #75CD9C #757ACD #CD75A6
square
#CDC875 #75CD9C #757ACD #CD75A6
split-complementary
#CDC875 #75A6CD #9C75CD
monochromatic
#938D35 #BDB648 #CDC875 #DDDAA2 #EEECCF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC875#FFFFFF#000000##000000
##CDC8751.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)
#D5C26E
Deuteranopia (green-blind)
#D7C679
Tritanopia (blue-blind)
#D9BEB4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc875;
/* rgb */ color: rgb(205, 200, 117);
/* oklch */ color: oklch(81.9% 0.105 105.5);
Tailwind
colors: {
  custom: {
    50: '#ded89e',
    500: '#cdc875',
    950: '#000000',
  },
}
SCSS
$custom: #cdc875;
$custom-light: #ded89e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc875",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 117
  },
  "hsl": {
    "h": 56.591,
    "s": 46.809,
    "l": 63.137
  },
  "oklch": {
    "l": 0.81866,
    "c": 0.10529,
    "h": 105.5
  },
  "luminance": 0.55572
}

Semantic roles & 50–950 ramp

primary
#CDC875
secondary
#4D5299
accent
#34BA2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC875

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

Preview Lab → · Contrast checker → · Palette generator →

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