#DCC252#DCC252

#DCC252 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.5% C 0.134 H 96.2°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#DCC252
RGBrgb(220, 194, 82)
HSLhsl(49, 66%, 59%)
HSVhsv(49, 63%, 86%)
CMYKcmyk(0%, 11.8%, 62.7%, 13.7%)
CIE-LABlab(78.70, -3.67, 58.11)
CIE-LCHlch(78.70, 58.22, 93.62°)
OKLaboklab(81.52% -0.0144 0.1328)
OKLCHoklch(81.52% 0.134 96.2)
XYZxyz(50.3322, 54.4108, 15.8322)
Luminance0.5441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCC252 #526CDC
analogous
#DC7D52 #DCC252 #B1DC52
triadic
#DCC252 #52DCC2 #C252DC
tetradic
#DCC252 #52DC7D #526CDC #DC52B1
square
#DCC252 #52DC7D #526CDC #DC52B1
split-complementary
#DCC252 #52B1DC #7D52DC
monochromatic
#957F1E #C8AA29 #DCC252 #E6D485 #F1E6B8

Accessibility & contrast

On white

1.77
#DCC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.88
#DCC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCC252
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCC252#FFFFFF#000000##000000
##DCC2521.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dcc252;
/* rgb */ color: rgb(220, 194, 82);
/* oklch */ color: oklch(81.5% 0.134 96.2);
Tailwind
colors: {
  custom: {
    50: '#ead487',
    500: '#dcc252',
    950: '#000000',
  },
}
SCSS
$custom: #dcc252;
$custom-light: #ead487;
$custom-dark: #000000;
JSON
{
  "hex": "#dcc252",
  "rgb": {
    "r": 220,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 48.696,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81517,
    "c": 0.13355,
    "h": 96.2
  },
  "luminance": 0.54408
}

Semantic roles & 50–950 ramp

primary
#DCC252
secondary
#384B9A
accent
#5FE93F
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #DCC252

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

Preview Lab → · Contrast checker → · Palette generator →

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