#D8C747#D8C747

#D8C747 is a very light, vivid yellow. Relative luminance 0.559; OKLCH L 82.1% C 0.146 H 101.7°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#D8C747
RGBrgb(216, 199, 71)
HSLhsl(53, 65%, 56%)
HSVhsv(53, 67%, 85%)
CMYKcmyk(0%, 7.9%, 67.1%, 15.3%)
CIE-LABlab(79.56, -8.58, 63.52)
CIE-LCHlch(79.56, 64.09, 97.69°)
OKLaboklab(82.09% -0.0294 0.1427)
OKLCHoklch(82.09% 0.146 101.7)
XYZxyz(49.8818, 55.9028, 14.1228)
Luminance0.5590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C747 #4758D8
analogous
#D87F47 #D8C747 #A0D847
triadic
#D8C747 #47D8C7 #C747D8
tetradic
#D8C747 #47D87F #4758D8 #D847A0
square
#D8C747 #47D87F #4758D8 #D847A0
split-complementary
#D8C747 #47A0D8 #7F47D8
monochromatic
#887B1D #BAA927 #D8C747 #E3D679 #EDE6AC

Accessibility & contrast

On white

1.72
#D8C747 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#D8C747 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C747
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C747#FFFFFF#000000##000000
##D8C7471.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C135
Deuteranopia (green-blind)
#DEC84F
Tritanopia (blue-blind)
#E8B9AD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d8c747;
/* rgb */ color: rgb(216, 199, 71);
/* oklch */ color: oklch(82.1% 0.146 101.7);
Tailwind
colors: {
  custom: {
    50: '#e8d781',
    500: '#d8c747',
    950: '#000000',
  },
}
SCSS
$custom: #d8c747;
$custom-light: #e8d781;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c747",
  "rgb": {
    "r": 216,
    "g": 199,
    "b": 71
  },
  "hsl": {
    "h": 52.966,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.82085,
    "c": 0.14566,
    "h": 101.7
  },
  "luminance": 0.55901
}

Semantic roles & 50–950 ramp

primary
#D8C747
secondary
#35408E
accent
#54E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C747

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

Preview Lab → · Contrast checker → · Palette generator →

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