#DCC151#DCC151

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

Color values

HEX#DCC151
RGBrgb(220, 193, 81)
HSLhsl(48, 67%, 59%)
HSVhsv(48, 63%, 86%)
CMYKcmyk(0%, 12.3%, 63.2%, 13.7%)
CIE-LABlab(78.43, -3.22, 58.26)
CIE-LCHlch(78.43, 58.34, 93.16°)
OKLaboklab(81.3% -0.0132 0.1329)
OKLCHoklch(81.3% 0.134 95.7)
XYZxyz(50.0726, 53.9521, 15.5593)
Luminance0.5395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCC151 #516CDC
analogous
#DC7C51 #DCC151 #B2DC51
triadic
#DCC151 #51DCC1 #C151DC
tetradic
#DCC151 #51DC7C #516CDC #DC51B2
square
#DCC151 #51DC7C #516CDC #DC51B2
split-complementary
#DCC151 #51B2DC #7C51DC
monochromatic
#957E1E #C8A928 #DCC151 #E6D384 #F0E5B7

Accessibility & contrast

On white

1.78
#DCC151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#DCC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCC151
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCC151#FFFFFF#000000##000000
##DCC1511.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#DAC656
Tritanopia (blue-blind)
#EDB3A9
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #dcc151;
/* rgb */ color: rgb(220, 193, 81);
/* oklch */ color: oklch(81.3% 0.134 95.7);
Tailwind
colors: {
  custom: {
    50: '#ead386',
    500: '#dcc151',
    950: '#000000',
  },
}
SCSS
$custom: #dcc151;
$custom-light: #ead386;
$custom-dark: #000000;
JSON
{
  "hex": "#dcc151",
  "rgb": {
    "r": 220,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 48.345,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.81303,
    "c": 0.1336,
    "h": 95.7
  },
  "luminance": 0.5395
}

Semantic roles & 50–950 ramp

primary
#DCC151
secondary
#384B99
accent
#60E93E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DCC151

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

Preview Lab → · Contrast checker → · Palette generator →

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