#CDC152#CDC152

#CDC152 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 80.0% C 0.132 H 103.2°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#CDC152
RGBrgb(205, 193, 82)
HSLhsl(54, 55%, 56%)
HSVhsv(54, 60%, 80%)
CMYKcmyk(0%, 5.9%, 60%, 19.6%)
CIE-LABlab(77.12, -9.46, 56.00)
CIE-LCHlch(77.12, 56.79, 99.59°)
OKLaboklab(79.95% -0.0301 0.1287)
OKLCHoklch(79.95% 0.132 103.2)
XYZxyz(45.7714, 51.7300, 15.5549)
Luminance0.5173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC152 #525ECD
analogous
#CD8452 #CDC152 #9CCD52
triadic
#CDC152 #52CDC1 #C152CD
tetradic
#CDC152 #52CD84 #525ECD #CD529C
square
#CDC152 #52CD84 #525ECD #CD529C
split-complementary
#CDC152 #529CCD #8452CD
monochromatic
#807725 #AFA333 #CDC152 #DBD281 #E8E3B1

Accessibility & contrast

On white

1.85
#CDC152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#CDC152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC152
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC152#FFFFFF#000000##000000
##CDC1521.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D5C158
Tritanopia (blue-blind)
#DBB5A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc152;
/* rgb */ color: rgb(205, 193, 82);
/* oklch */ color: oklch(80.0% 0.132 103.2);
Tailwind
colors: {
  custom: {
    50: '#dfd387',
    500: '#cdc152',
    950: '#000000',
  },
}
SCSS
$custom: #cdc152;
$custom-light: #dfd387;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc152",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 54.146,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.7995,
    "c": 0.13213,
    "h": 103.2
  },
  "luminance": 0.51728
}

Semantic roles & 50–950 ramp

primary
#CDC152
secondary
#3C4387
accent
#58DE49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC152

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

Preview Lab → · Contrast checker → · Palette generator →

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