#D4C747#D4C747

#D4C747 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.146 H 103.5°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#D4C747
RGBrgb(212, 199, 71)
HSLhsl(54, 62%, 55%)
HSVhsv(54, 67%, 83%)
CMYKcmyk(0%, 6.1%, 66.5%, 16.9%)
CIE-LABlab(79.21, -10.27, 63.05)
CIE-LCHlch(79.21, 63.88, 99.25°)
OKLaboklab(81.73% -0.034 0.1418)
OKLCHoklch(81.73% 0.146 103.5)
XYZxyz(48.7141, 55.3007, 14.0681)
Luminance0.5530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C747 #4754D4
analogous
#D48047 #D4C747 #9AD447
triadic
#D4C747 #47D4C7 #C747D4
tetradic
#D4C747 #47D480 #4754D4 #D4479A
square
#D4C747 #47D480 #4754D4 #D4479A
split-complementary
#D4C747 #479AD4 #8047D4
monochromatic
#82791E #B4A72A #D4C747 #E0D679 #EBE5AA

Accessibility & contrast

On white

1.74
#D4C747 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#D4C747 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C747
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C747#FFFFFF#000000##000000
##D4C7471.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C136
Deuteranopia (green-blind)
#DCC74F
Tritanopia (blue-blind)
#E3BAAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c747;
/* rgb */ color: rgb(212, 199, 71);
/* oklch */ color: oklch(81.7% 0.146 103.5);
Tailwind
colors: {
  custom: {
    50: '#e5d781',
    500: '#d4c747',
    950: '#000000',
  },
}
SCSS
$custom: #d4c747;
$custom-light: #e5d781;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c747",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 71
  },
  "hsl": {
    "h": 54.468,
    "s": 62.115,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81729,
    "c": 0.14581,
    "h": 103.5
  },
  "luminance": 0.55299
}

Semantic roles & 50–950 ramp

primary
#D4C747
secondary
#363E89
accent
#52E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C747

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

Preview Lab → · Contrast checker → · Palette generator →

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