#D4C047#D4C047

#D4C047 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.3% C 0.140 H 99.8°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#D4C047
RGBrgb(212, 192, 71)
HSLhsl(51, 62%, 55%)
HSVhsv(51, 67%, 83%)
CMYKcmyk(0%, 9.4%, 66.5%, 16.9%)
CIE-LABlab(77.37, -6.69, 61.15)
CIE-LCHlch(77.37, 61.52, 96.24°)
OKLaboklab(80.27% -0.0238 0.1378)
OKLCHoklch(80.27% 0.14 99.8)
XYZxyz(47.1404, 52.1534, 13.5436)
Luminance0.5215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C047 #475BD4
analogous
#D47947 #D4C047 #A2D447
triadic
#D4C047 #47D4C0 #C047D4
tetradic
#D4C047 #47D479 #475BD4 #D447A2
square
#D4C047 #47D479 #475BD4 #D447A2
split-complementary
#D4C047 #47A2D4 #7947D4
monochromatic
#82741E #B4A02A #D4C047 #E0D179 #EBE2AA

Accessibility & contrast

On white

1.84
#D4C047 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#D4C047 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C047
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C047#FFFFFF#000000##000000
##D4C0471.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4c047;
/* rgb */ color: rgb(212, 192, 71);
/* oklch */ color: oklch(80.3% 0.140 99.8);
Tailwind
colors: {
  custom: {
    50: '#e5d280',
    500: '#d4c047',
    950: '#000000',
  },
}
SCSS
$custom: #d4c047;
$custom-light: #e5d280;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c047",
  "rgb": {
    "r": 212,
    "g": 192,
    "b": 71
  },
  "hsl": {
    "h": 51.489,
    "s": 62.115,
    "l": 55.49
  },
  "oklch": {
    "l": 0.80266,
    "c": 0.13983,
    "h": 99.8
  },
  "luminance": 0.52151
}

Semantic roles & 50–950 ramp

primary
#D4C047
secondary
#364289
accent
#5AE543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C047

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

Preview Lab → · Contrast checker → · Palette generator →

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