#CDC478#CDC478

#CDC478 is a light, moderate yellow. Relative luminance 0.538; OKLCH L 81.1% C 0.098 H 102.4°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#CDC478
RGBrgb(205, 196, 120)
HSLhsl(54, 46%, 64%)
HSVhsv(54, 41%, 80%)
CMYKcmyk(0%, 4.4%, 41.5%, 19.6%)
CIE-LABlab(78.35, -7.68, 39.23)
CIE-LCHlch(78.35, 39.97, 101.08°)
OKLaboklab(81.07% -0.021 0.0954)
OKLCHoklch(81.07% 0.098 102.4)
XYZxyz(48.3079, 53.8164, 25.6085)
Luminance0.5382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC478 #7881CD
analogous
#CD9978 #CDC478 #ABCD78
triadic
#CDC478 #78CDC4 #C478CD
tetradic
#CDC478 #78CD99 #7881CD #CD78AB
square
#CDC478 #78CD99 #7881CD #CD78AB
split-complementary
#CDC478 #78ABCD #9978CD
monochromatic
#948A37 #BCB04B #CDC478 #DED8A5 #EEEBD1

Accessibility & contrast

On white

1.79
#CDC478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.76
#CDC478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC478
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC478#FFFFFF#000000##000000
##CDC4781.001.7911.7611.76
#FFFFFF1.791.0021.0021.00
#00000011.7621.001.001.00
##00000011.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BF72
Deuteranopia (green-blind)
#D4C47B
Tritanopia (blue-blind)
#D9BAB1
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc478;
/* rgb */ color: rgb(205, 196, 120);
/* oklch */ color: oklch(81.1% 0.098 102.4);
Tailwind
colors: {
  custom: {
    50: '#ddd5a0',
    500: '#cdc478',
    950: '#000000',
  },
}
SCSS
$custom: #cdc478;
$custom-light: #ddd5a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc478",
  "rgb": {
    "r": 205,
    "g": 196,
    "b": 120
  },
  "hsl": {
    "h": 53.647,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.81073,
    "c": 0.09765,
    "h": 102.4
  },
  "luminance": 0.53815
}

Semantic roles & 50–950 ramp

primary
#CDC478
secondary
#4F579A
accent
#3BB92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC478

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

Preview Lab → · Contrast checker → · Palette generator →

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