#CDC752#CDC752

#CDC752 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.2% C 0.138 H 106.3°. Best body text is #000000 at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#CDC752
RGBrgb(205, 199, 82)
HSLhsl(57, 55%, 56%)
HSVhsv(57, 60%, 80%)
CMYKcmyk(0%, 2.9%, 60%, 19.6%)
CIE-LABlab(78.72, -12.52, 57.75)
CIE-LCHlch(78.72, 59.09, 102.23°)
OKLaboklab(81.22% -0.0388 0.1324)
OKLCHoklch(81.22% 0.138 106.3)
XYZxyz(47.1248, 54.4367, 16.0060)
Luminance0.5444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC752 #5258CD
analogous
#CD8A52 #CDC752 #96CD52
triadic
#CDC752 #52CDC7 #C752CD
tetradic
#CDC752 #52CD8A #5258CD #CD5296
square
#CDC752 #52CD8A #5258CD #CD5296
split-complementary
#CDC752 #5296CD #8A52CD
monochromatic
#807B25 #AFA933 #CDC752 #DBD681 #E8E6B1

Accessibility & contrast

On white

1.77
#CDC752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.89
#CDC752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC752
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC752#FFFFFF#000000##000000
##CDC7521.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C045
Deuteranopia (green-blind)
#D9C559
Tritanopia (blue-blind)
#DBBBAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc752;
/* rgb */ color: rgb(205, 199, 82);
/* oklch */ color: oklch(81.2% 0.138 106.3);
Tailwind
colors: {
  custom: {
    50: '#dfd787',
    500: '#cdc752',
    950: '#000000',
  },
}
SCSS
$custom: #cdc752;
$custom-light: #dfd787;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc752",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 57.073,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81219,
    "c": 0.13795,
    "h": 106.3
  },
  "luminance": 0.54435
}

Semantic roles & 50–950 ramp

primary
#CDC752
secondary
#3C4087
accent
#51DE49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC752

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

Preview Lab → · Contrast checker → · Palette generator →

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