#CDC952#CDC952

#CDC952 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.6% C 0.140 H 107.3°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#CDC952
RGBrgb(205, 201, 82)
HSLhsl(58, 55%, 56%)
HSVhsv(58, 60%, 80%)
CMYKcmyk(0%, 2%, 60%, 19.6%)
CIE-LABlab(79.25, -13.53, 58.33)
CIE-LCHlch(79.25, 59.88, 103.06°)
OKLaboklab(81.65% -0.0416 0.1336)
OKLCHoklch(81.65% 0.14 107.3)
XYZxyz(47.5880, 55.3631, 16.1604)
Luminance0.5536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC952 #5256CD
analogous
#CD8C52 #CDC952 #94CD52
triadic
#CDC952 #52CDC9 #C952CD
tetradic
#CDC952 #52CD8C #5256CD #CD5294
square
#CDC952 #52CD8C #5256CD #CD5294
split-complementary
#CDC952 #5294CD #8C52CD
monochromatic
#807D25 #AFAB33 #CDC952 #DBD881 #E8E7B1

Accessibility & contrast

On white

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

On black

12.07
#CDC952 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC952
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC952#FFFFFF#000000##000000
##CDC9521.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C244
Deuteranopia (green-blind)
#DBC659
Tritanopia (blue-blind)
#DBBDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc952;
/* rgb */ color: rgb(205, 201, 82);
/* oklch */ color: oklch(81.6% 0.140 107.3);
Tailwind
colors: {
  custom: {
    50: '#dfd987',
    500: '#cdc952',
    950: '#000000',
  },
}
SCSS
$custom: #cdc952;
$custom-light: #dfd987;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc952",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 82
  },
  "hsl": {
    "h": 58.049,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81645,
    "c": 0.13996,
    "h": 107.3
  },
  "luminance": 0.55362
}

Semantic roles & 50–950 ramp

primary
#CDC952
secondary
#3C3E87
accent
#4EDE49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC952

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

Preview Lab → · Contrast checker → · Palette generator →

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