#CDCC78#CDCC78

#CDCC78 is a very light, moderate yellow. Relative luminance 0.575; OKLCH L 82.8% C 0.107 H 107.9°. Best body text is #000000 at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#CDCC78
RGBrgb(205, 204, 120)
HSLhsl(59, 46%, 64%)
HSVhsv(59, 41%, 80%)
CMYKcmyk(0%, 0.5%, 41.5%, 19.6%)
CIE-LABlab(80.47, -11.77, 41.89)
CIE-LCHlch(80.47, 43.52, 105.69°)
OKLaboklab(82.76% -0.0328 0.1014)
OKLCHoklch(82.76% 0.107 107.9)
XYZxyz(50.1607, 57.5220, 26.2261)
Luminance0.5752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCC78 #7879CD
analogous
#CDA178 #CDCC78 #A3CD78
triadic
#CDCC78 #78CDCC #CC78CD
tetradic
#CDCC78 #78CDA1 #7879CD #CD78A3
square
#CDCC78 #78CDA1 #7879CD #CD78A3
split-complementary
#CDCC78 #78A3CD #A178CD
monochromatic
#949337 #BCBB4B #CDCC78 #DEDDA5 #EEEED1

Accessibility & contrast

On white

1.68
#CDCC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.50
#CDCC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCC78
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCC78#FFFFFF#000000##000000
##CDCC781.001.6812.5012.50
#FFFFFF1.681.0021.0021.00
#00000012.5021.001.001.00
##00000012.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C671
Deuteranopia (green-blind)
#DAC97C
Tritanopia (blue-blind)
#D8C2B8
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cdcc78;
/* rgb */ color: rgb(205, 204, 120);
/* oklch */ color: oklch(82.8% 0.107 107.9);
Tailwind
colors: {
  custom: {
    50: '#dedba0',
    500: '#cdcc78',
    950: '#000000',
  },
}
SCSS
$custom: #cdcc78;
$custom-light: #dedba0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcc78",
  "rgb": {
    "r": 205,
    "g": 204,
    "b": 120
  },
  "hsl": {
    "h": 59.294,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.82755,
    "c": 0.10655,
    "h": 107.9
  },
  "luminance": 0.57521
}

Semantic roles & 50–950 ramp

primary
#CDCC78
secondary
#4F509A
accent
#2EB92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CDCC78

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

Preview Lab → · Contrast checker → · Palette generator →

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