#CDC772#CDC772

#CDC772 is a light, moderate yellow. Relative luminance 0.550; OKLCH L 81.6% C 0.107 H 105.0°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#CDC772
RGBrgb(205, 199, 114)
HSLhsl(56, 48%, 63%)
HSVhsv(56, 44%, 80%)
CMYKcmyk(0%, 2.9%, 44.4%, 19.6%)
CIE-LABlab(79.07, -9.84, 43.13)
CIE-LCHlch(79.07, 44.24, 102.85°)
OKLaboklab(81.61% -0.0278 0.1038)
OKLCHoklch(81.61% 0.107 105)
XYZxyz(48.6386, 55.0422, 23.9784)
Luminance0.5504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC772 #7278CD
analogous
#CD9A72 #CDC772 #A5CD72
triadic
#CDC772 #72CDC7 #C772CD
tetradic
#CDC772 #72CD9A #7278CD #CD72A5
square
#CDC772 #72CD9A #7278CD #CD72A5
split-complementary
#CDC772 #72A5CD #9A72CD
monochromatic
#918B33 #BDB545 #CDC772 #DDD99F #EDEBCC

Accessibility & contrast

On white

1.75
#CDC772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.01
#CDC772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC772
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC772#FFFFFF#000000##000000
##CDC7721.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C16B
Deuteranopia (green-blind)
#D7C676
Tritanopia (blue-blind)
#D9BDB3
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc772;
/* rgb */ color: rgb(205, 199, 114);
/* oklch */ color: oklch(81.6% 0.107 105.0);
Tailwind
colors: {
  custom: {
    50: '#ded79c',
    500: '#cdc772',
    950: '#000000',
  },
}
SCSS
$custom: #cdc772;
$custom-light: #ded79c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc772",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 114
  },
  "hsl": {
    "h": 56.044,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.81611,
    "c": 0.10743,
    "h": 105
  },
  "luminance": 0.55041
}

Semantic roles & 50–950 ramp

primary
#CDC772
secondary
#4C5197
accent
#34BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC772

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

Preview Lab → · Contrast checker → · Palette generator →

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