#CDCA72#CDCA72

#CDCA72 is a very light, moderate yellow. Relative luminance 0.564; OKLCH L 82.2% C 0.111 H 106.9°. Best body text is #000000 at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#CDCA72
RGBrgb(205, 202, 114)
HSLhsl(58, 48%, 63%)
HSVhsv(58, 44%, 80%)
CMYKcmyk(0%, 1.5%, 44.4%, 19.6%)
CIE-LABlab(79.86, -11.36, 44.11)
CIE-LCHlch(79.86, 45.55, 104.45°)
OKLaboklab(82.24% -0.0321 0.106)
OKLCHoklch(82.24% 0.111 106.9)
XYZxyz(49.3356, 56.4363, 24.2107)
Luminance0.5644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA72 #7275CD
analogous
#CD9C72 #CDCA72 #A2CD72
triadic
#CDCA72 #72CDCA #CA72CD
tetradic
#CDCA72 #72CD9C #7275CD #CD72A2
square
#CDCA72 #72CD9C #7275CD #CD72A2
split-complementary
#CDCA72 #72A2CD #9C72CD
monochromatic
#918E33 #BDB945 #CDCA72 #DDDB9F #EDECCC

Accessibility & contrast

On white

1.71
#CDCA72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.29
#CDCA72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA72
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA72#FFFFFF#000000##000000
##CDCA721.001.7112.2912.29
#FFFFFF1.711.0021.0021.00
#00000012.2921.001.001.00
##00000012.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C46B
Deuteranopia (green-blind)
#D9C876
Tritanopia (blue-blind)
#D9C0B5
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdca72;
/* rgb */ color: rgb(205, 202, 114);
/* oklch */ color: oklch(82.2% 0.111 106.9);
Tailwind
colors: {
  custom: {
    50: '#deda9c',
    500: '#cdca72',
    950: '#000000',
  },
}
SCSS
$custom: #cdca72;
$custom-light: #deda9c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca72",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 114
  },
  "hsl": {
    "h": 58.022,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.82243,
    "c": 0.11074,
    "h": 106.9
  },
  "luminance": 0.56435
}

Semantic roles & 50–950 ramp

primary
#CDCA72
secondary
#4C4E97
accent
#2FBB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDCA72

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

Preview Lab → · Contrast checker → · Palette generator →

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