#CDC878#CDC878

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

Color values

HEX#CDC878
RGBrgb(205, 200, 120)
HSLhsl(56, 46%, 64%)
HSVhsv(56, 41%, 80%)
CMYKcmyk(0%, 2.4%, 41.5%, 19.6%)
CIE-LABlab(79.41, -9.73, 40.56)
CIE-LCHlch(79.41, 41.71, 103.49°)
OKLaboklab(81.91% -0.0269 0.0984)
OKLCHoklch(81.91% 0.102 105.3)
XYZxyz(49.2222, 55.6450, 25.9133)
Luminance0.5564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC878 #787DCD
analogous
#CD9D78 #CDC878 #A7CD78
triadic
#CDC878 #78CDC8 #C878CD
tetradic
#CDC878 #78CD9D #787DCD #CD78A7
square
#CDC878 #78CD9D #787DCD #CD78A7
split-complementary
#CDC878 #78A7CD #9D78CD
monochromatic
#948E37 #BCB64B #CDC878 #DEDAA5 #EEECD1

Accessibility & contrast

On white

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

On black

12.13
#CDC878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC878
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC878#FFFFFF#000000##000000
##CDC8781.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C372
Deuteranopia (green-blind)
#D7C77B
Tritanopia (blue-blind)
#D8BEB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc878;
/* rgb */ color: rgb(205, 200, 120);
/* oklch */ color: oklch(81.9% 0.102 105.3);
Tailwind
colors: {
  custom: {
    50: '#ddd8a0',
    500: '#cdc878',
    950: '#000000',
  },
}
SCSS
$custom: #cdc878;
$custom-light: #ddd8a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc878",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 120
  },
  "hsl": {
    "h": 56.471,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.81912,
    "c": 0.10199,
    "h": 105.3
  },
  "luminance": 0.55644
}

Semantic roles & 50–950 ramp

primary
#CDC878
secondary
#4F549A
accent
#35B92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC878

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

Preview Lab → · Contrast checker → · Palette generator →

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