#DCD252#DCD252

#DCD252 is a very light, vivid yellow. Relative luminance 0.619; OKLCH L 84.8% C 0.147 H 104.8°. Best body text is #000000 at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#DCD252
RGBrgb(220, 210, 82)
HSLhsl(56, 66%, 59%)
HSVhsv(56, 63%, 86%)
CMYKcmyk(0%, 4.5%, 62.7%, 13.7%)
CIE-LABlab(82.87, -11.83, 62.60)
CIE-LCHlch(82.87, 63.70, 100.70°)
OKLaboklab(84.83% -0.0377 0.1423)
OKLCHoklch(84.83% 0.147 104.8)
XYZxyz(54.0868, 61.9200, 17.0837)
Luminance0.6192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD252 #525CDC
analogous
#DC8D52 #DCD252 #A1DC52
triadic
#DCD252 #52DCD2 #D252DC
tetradic
#DCD252 #52DC8D #525CDC #DC52A1
square
#DCD252 #52DC8D #525CDC #DC52A1
split-complementary
#DCD252 #52A1DC #8D52DC
monochromatic
#958D1E #C8BD29 #DCD252 #E6DF85 #F1ECB8

Accessibility & contrast

On white

1.57
#DCD252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.38
#DCD252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD252
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD252#FFFFFF#000000##000000
##DCD2521.001.5713.3813.38
#FFFFFF1.571.0021.0021.00
#00000013.3821.001.001.00
##00000013.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CB42
Deuteranopia (green-blind)
#E7D159
Tritanopia (blue-blind)
#EBC5B7
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #dcd252;
/* rgb */ color: rgb(220, 210, 82);
/* oklch */ color: oklch(84.8% 0.147 104.8);
Tailwind
colors: {
  custom: {
    50: '#eadf88',
    500: '#dcd252',
    950: '#000000',
  },
}
SCSS
$custom: #dcd252;
$custom-light: #eadf88;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd252",
  "rgb": {
    "r": 220,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 55.652,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.84826,
    "c": 0.1472,
    "h": 104.8
  },
  "luminance": 0.61918
}

Semantic roles & 50–950 ramp

primary
#DCD252
secondary
#383F9A
accent
#4BE93F
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #DCD252

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

Preview Lab → · Contrast checker → · Palette generator →

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