#CDC78F#CDC78F

#CDC78F is a very light, moderate yellow. Relative luminance 0.558; OKLCH L 82.1% C 0.074 H 102.7°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CDC78F
RGBrgb(205, 199, 143)
HSLhsl(54, 38%, 68%)
HSVhsv(54, 30%, 80%)
CMYKcmyk(0%, 2.9%, 30.2%, 19.6%)
CIE-LABlab(79.51, -6.54, 28.86)
CIE-LCHlch(79.51, 29.59, 102.76°)
OKLaboklab(82.1% -0.0163 0.0722)
OKLCHoklch(82.1% 0.074 102.7)
XYZxyz(50.5585, 55.8102, 34.0904)
Luminance0.5581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC78F #8F95CD
analogous
#CDA88F #CDC78F #B4CD8F
triadic
#CDC78F #8FCDC7 #C78FCD
tetradic
#CDC78F #8FCDA8 #8F95CD #CD8FB4
square
#CDC78F #8FCDA8 #8F95CD #CD8FB4
split-complementary
#CDC78F #8FB4CD #A88FCD
monochromatic
#9C9446 #BAB265 #CDC78F #E0DCB9 #F3F1E4

Accessibility & contrast

On white

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

On black

12.16
#CDC78F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC78F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC78F#FFFFFF#000000##000000
##CDC78F1.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1C38B
Deuteranopia (green-blind)
#D3C791
Tritanopia (blue-blind)
#D6C0B8
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc78f;
/* rgb */ color: rgb(205, 199, 143);
/* oklch */ color: oklch(82.1% 0.074 102.7);
Tailwind
colors: {
  custom: {
    50: '#ddd7b0',
    500: '#cdc78f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc78f;
$custom-light: #ddd7b0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc78f",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 143
  },
  "hsl": {
    "h": 54.194,
    "s": 38.272,
    "l": 68.235
  },
  "oklch": {
    "l": 0.82103,
    "c": 0.074,
    "h": 102.7
  },
  "luminance": 0.55809
}

Semantic roles & 50–950 ramp

primary
#CDC78F
secondary
#5E65A2
accent
#40B134
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC78F

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

Preview Lab → · Contrast checker → · Palette generator →

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