#DDC252#DDC252

#DDC252 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.6% C 0.134 H 95.7°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#DDC252
RGBrgb(221, 194, 82)
HSLhsl(48, 67%, 59%)
HSVhsv(48, 63%, 87%)
CMYKcmyk(0%, 12.2%, 62.9%, 13.3%)
CIE-LABlab(78.79, -3.25, 58.23)
CIE-LCHlch(78.79, 58.32, 93.20°)
OKLaboklab(81.61% -0.0133 0.133)
OKLCHoklch(81.61% 0.134 95.7)
XYZxyz(50.6358, 54.5674, 15.8464)
Luminance0.5456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DDC252 #526DDD
analogous
#DD7C52 #DDC252 #B3DD52
triadic
#DDC252 #52DDC2 #C252DD
tetradic
#DDC252 #52DD7C #526DDD #DD52B3
square
#DDC252 #52DD7C #526DDD #DD52B3
split-complementary
#DDC252 #52B3DD #7C52DD
monochromatic
#977F1E #CAAB28 #DDC252 #E7D485 #F1E6B8

Accessibility & contrast

On white

1.76
#DDC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.91
#DDC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DDC252
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DDC252#FFFFFF#000000##000000
##DDC2521.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE45
Deuteranopia (green-blind)
#DBC757
Tritanopia (blue-blind)
#EEB4AA
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #ddc252;
/* rgb */ color: rgb(221, 194, 82);
/* oklch */ color: oklch(81.6% 0.134 95.7);
Tailwind
colors: {
  custom: {
    50: '#ebd487',
    500: '#ddc252',
    950: '#000000',
  },
}
SCSS
$custom: #ddc252;
$custom-light: #ebd487;
$custom-dark: #000000;
JSON
{
  "hex": "#ddc252",
  "rgb": {
    "r": 221,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 48.345,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.81611,
    "c": 0.13367,
    "h": 95.7
  },
  "luminance": 0.54565
}

Semantic roles & 50–950 ramp

primary
#DDC252
secondary
#384B9B
accent
#5FEA3E
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #DDC252

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

Preview Lab → · Contrast checker → · Palette generator →

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