#D2C047#D2C047

#D2C047 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.1% C 0.140 H 100.8°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#D2C047
RGBrgb(210, 192, 71)
HSLhsl(52, 61%, 55%)
HSVhsv(52, 66%, 82%)
CMYKcmyk(0%, 8.6%, 66.2%, 17.6%)
CIE-LABlab(77.20, -7.54, 60.91)
CIE-LCHlch(77.20, 61.38, 97.05°)
OKLaboklab(80.08% -0.0261 0.1373)
OKLCHoklch(80.08% 0.14 100.8)
XYZxyz(46.5673, 51.8579, 13.5167)
Luminance0.5186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C047 #4759D2
analogous
#D27A47 #D2C047 #9FD247
triadic
#D2C047 #47D2C0 #C047D2
tetradic
#D2C047 #47D27A #4759D2 #D2479F
square
#D2C047 #47D27A #4759D2 #D2479F
split-complementary
#D2C047 #479FD2 #7A47D2
monochromatic
#7F731F #B19F2B #D2C047 #DED178 #EAE2A9

Accessibility & contrast

On white

1.85
#D2C047 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#D2C047 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C047
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C047#FFFFFF#000000##000000
##D2C0471.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB37
Deuteranopia (green-blind)
#D7C24E
Tritanopia (blue-blind)
#E2B3A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c047;
/* rgb */ color: rgb(210, 192, 71);
/* oklch */ color: oklch(80.1% 0.140 100.8);
Tailwind
colors: {
  custom: {
    50: '#e3d280',
    500: '#d2c047',
    950: '#000000',
  },
}
SCSS
$custom: #d2c047;
$custom-light: #e3d280;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c047",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 71
  },
  "hsl": {
    "h": 52.23,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.80084,
    "c": 0.13979,
    "h": 100.8
  },
  "luminance": 0.51856
}

Semantic roles & 50–950 ramp

primary
#D2C047
secondary
#364187
accent
#59E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C047

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

Preview Lab → · Contrast checker → · Palette generator →

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