#CDC77B#CDC77B

#CDC77B is a light, moderate yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.098 H 104.4°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#CDC77B
RGBrgb(205, 199, 123)
HSLhsl(56, 45%, 64%)
HSVhsv(56, 40%, 80%)
CMYKcmyk(0%, 2.9%, 40%, 19.6%)
CIE-LABlab(79.19, -8.90, 38.76)
CIE-LCHlch(79.19, 39.77, 102.93°)
OKLaboklab(81.75% -0.0243 0.0945)
OKLCHoklch(81.75% 0.098 104.4)
XYZxyz(49.1763, 55.2573, 26.8103)
Luminance0.5526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC77B #7B81CD
analogous
#CD9E7B #CDC77B #AACD7B
triadic
#CDC77B #7BCDC7 #C77BCD
tetradic
#CDC77B #7BCD9E #7B81CD #CD7BAA
square
#CDC77B #7BCD9E #7B81CD #CD7BAA
split-complementary
#CDC77B #7BAACD #9E7BCD
monochromatic
#958E38 #BCB44F #CDC77B #DEDAA7 #EFEDD4

Accessibility & contrast

On white

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

On black

12.05
#CDC77B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC77B
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC77B#FFFFFF#000000##000000
##CDC77B1.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C275
Deuteranopia (green-blind)
#D6C67E
Tritanopia (blue-blind)
#D8BEB4
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc77b;
/* rgb */ color: rgb(205, 199, 123);
/* oklch */ color: oklch(81.7% 0.098 104.4);
Tailwind
colors: {
  custom: {
    50: '#ddd7a2',
    500: '#cdc77b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc77b;
$custom-light: #ddd7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc77b",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 123
  },
  "hsl": {
    "h": 55.61,
    "s": 45.055,
    "l": 64.314
  },
  "oklch": {
    "l": 0.81749,
    "c": 0.09754,
    "h": 104.4
  },
  "luminance": 0.55256
}

Semantic roles & 50–950 ramp

primary
#CDC77B
secondary
#51569B
accent
#37B82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC77B

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

Preview Lab → · Contrast checker → · Palette generator →

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