#CDC778#CDC778

#CDC778 is a light, moderate yellow. Relative luminance 0.552; OKLCH L 81.7% C 0.101 H 104.6°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#CDC778
RGBrgb(205, 199, 120)
HSLhsl(56, 46%, 64%)
HSVhsv(56, 41%, 80%)
CMYKcmyk(0%, 2.9%, 41.5%, 19.6%)
CIE-LABlab(79.15, -9.22, 40.23)
CIE-LCHlch(79.15, 41.27, 102.91°)
OKLaboklab(81.7% -0.0255 0.0976)
OKLCHoklch(81.7% 0.101 104.6)
XYZxyz(48.9913, 55.1833, 25.8364)
Luminance0.5518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC778 #787ECD
analogous
#CD9C78 #CDC778 #A8CD78
triadic
#CDC778 #78CDC7 #C778CD
tetradic
#CDC778 #78CD9C #787ECD #CD78A8
square
#CDC778 #78CD9C #787ECD #CD78A8
split-complementary
#CDC778 #78A8CD #9C78CD
monochromatic
#948D37 #BCB44B #CDC778 #DEDAA5 #EEECD1

Accessibility & contrast

On white

1.74
#CDC778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.04
#CDC778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC778
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC778#FFFFFF#000000##000000
##CDC7781.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C272
Deuteranopia (green-blind)
#D6C67B
Tritanopia (blue-blind)
#D8BDB4
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc778;
/* rgb */ color: rgb(205, 199, 120);
/* oklch */ color: oklch(81.7% 0.101 104.6);
Tailwind
colors: {
  custom: {
    50: '#ddd7a0',
    500: '#cdc778',
    950: '#000000',
  },
}
SCSS
$custom: #cdc778;
$custom-light: #ddd7a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc778",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 120
  },
  "hsl": {
    "h": 55.765,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.81702,
    "c": 0.10089,
    "h": 104.6
  },
  "luminance": 0.55182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC778

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

Preview Lab → · Contrast checker → · Palette generator →

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