#CDC252#CDC252

#CDC252 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.2% C 0.133 H 103.7°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#CDC252
RGBrgb(205, 194, 82)
HSLhsl(55, 55%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 5.4%, 60%, 19.6%)
CIE-LABlab(77.38, -9.98, 56.29)
CIE-LCHlch(77.38, 57.17, 100.05°)
OKLaboklab(80.16% -0.0315 0.1293)
OKLCHoklch(80.16% 0.133 103.7)
XYZxyz(45.9932, 52.1736, 15.6288)
Luminance0.5217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC252 #525DCD
analogous
#CD8552 #CDC252 #9BCD52
triadic
#CDC252 #52CDC2 #C252CD
tetradic
#CDC252 #52CD85 #525DCD #CD529B
square
#CDC252 #52CD85 #525DCD #CD529B
split-complementary
#CDC252 #529BCD #8552CD
monochromatic
#807825 #AFA433 #CDC252 #DBD381 #E8E3B1

Accessibility & contrast

On white

1.84
#CDC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#CDC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC252
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC252#FFFFFF#000000##000000
##CDC2521.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#DBB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc252;
/* rgb */ color: rgb(205, 194, 82);
/* oklch */ color: oklch(80.2% 0.133 103.7);
Tailwind
colors: {
  custom: {
    50: '#dfd487',
    500: '#cdc252',
    950: '#000000',
  },
}
SCSS
$custom: #cdc252;
$custom-light: #dfd487;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc252",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 54.634,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.8016,
    "c": 0.13307,
    "h": 103.7
  },
  "luminance": 0.52172
}

Semantic roles & 50–950 ramp

primary
#CDC252
secondary
#3C4387
accent
#57DE49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC252

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

Preview Lab → · Contrast checker → · Palette generator →

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