#D8C74E#D8C74E

#D8C74E is a very light, vivid yellow. Relative luminance 0.560; OKLCH L 82.1% C 0.141 H 101.3°. Best body text is #000000 at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#D8C74E
RGBrgb(216, 199, 78)
HSLhsl(53, 64%, 58%)
HSVhsv(53, 64%, 85%)
CMYKcmyk(0%, 7.9%, 63.9%, 15.3%)
CIE-LABlab(79.61, -8.17, 60.70)
CIE-LCHlch(79.61, 61.25, 97.67°)
OKLaboklab(82.15% -0.0275 0.1378)
OKLCHoklch(82.15% 0.141 101.3)
XYZxyz(50.1195, 55.9979, 15.3749)
Luminance0.5600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C74E #4E5FD8
analogous
#D8824E #D8C74E #A4D84E
triadic
#D8C74E #4ED8C7 #C74ED8
tetradic
#D8C74E #4ED882 #4E5FD8 #D84EA4
square
#D8C74E #4ED882 #4E5FD8 #D84EA4
split-complementary
#D8C74E #4EA4D8 #824ED8
monochromatic
#8D7F1F #BFAC2A #D8C74E #E3D780 #EEE7B2

Accessibility & contrast

On white

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

On black

12.20
#D8C74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C74E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C74E#FFFFFF#000000##000000
##D8C74E1.001.7212.2012.20
#FFFFFF1.721.0021.0021.00
#00000012.2021.001.001.00
##00000012.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C13F
Deuteranopia (green-blind)
#DDC855
Tritanopia (blue-blind)
#E8BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d8c74e;
/* rgb */ color: rgb(216, 199, 78);
/* oklch */ color: oklch(82.1% 0.141 101.3);
Tailwind
colors: {
  custom: {
    50: '#e7d785',
    500: '#d8c74e',
    950: '#000000',
  },
}
SCSS
$custom: #d8c74e;
$custom-light: #e7d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c74e",
  "rgb": {
    "r": 216,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 52.609,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.82145,
    "c": 0.14052,
    "h": 101.3
  },
  "luminance": 0.55996
}

Semantic roles & 50–950 ramp

primary
#D8C74E
secondary
#384392
accent
#55E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C74E

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

Preview Lab → · Contrast checker → · Palette generator →

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