#DCC04F#DCC04F

#DCC04F is a light, vivid yellow. Relative luminance 0.535; OKLCH L 81.1% C 0.134 H 95.3°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#DCC04F
RGBrgb(220, 192, 79)
HSLhsl(48, 67%, 59%)
HSVhsv(48, 64%, 86%)
CMYKcmyk(0%, 12.7%, 64.1%, 13.7%)
CIE-LABlab(78.16, -2.83, 58.83)
CIE-LCHlch(78.16, 58.90, 92.75°)
OKLaboklab(81.08% -0.0123 0.1339)
OKLCHoklch(81.08% 0.134 95.3)
XYZxyz(49.7784, 53.4819, 15.0967)
Luminance0.5348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCC04F #4F6BDC
analogous
#DC794F #DCC04F #B1DC4F
triadic
#DCC04F #4FDCC0 #C04FDC
tetradic
#DCC04F #4FDC79 #4F6BDC #DC4FB1
square
#DCC04F #4FDC79 #4F6BDC #DC4FB1
split-complementary
#DCC04F #4FB1DC #794FDC
monochromatic
#937C1D #C6A727 #DCC04F #E6D282 #F0E5B5

Accessibility & contrast

On white

1.80
#DCC04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#DCC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCC04F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCC04F#FFFFFF#000000##000000
##DCC04F1.001.8011.7011.70
#FFFFFF1.801.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC42
Deuteranopia (green-blind)
#DAC555
Tritanopia (blue-blind)
#EDB2A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #dcc04f;
/* rgb */ color: rgb(220, 192, 79);
/* oklch */ color: oklch(81.1% 0.134 95.3);
Tailwind
colors: {
  custom: {
    50: '#ead285',
    500: '#dcc04f',
    950: '#000000',
  },
}
SCSS
$custom: #dcc04f;
$custom-light: #ead285;
$custom-dark: #000000;
JSON
{
  "hex": "#dcc04f",
  "rgb": {
    "r": 220,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 48.085,
    "s": 66.825,
    "l": 58.627
  },
  "oklch": {
    "l": 0.8108,
    "c": 0.13443,
    "h": 95.3
  },
  "luminance": 0.53479
}

Semantic roles & 50–950 ramp

primary
#DCC04F
secondary
#374A98
accent
#60EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DCC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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