#D8C74A#D8C74A

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

Color values

HEX#D8C74A
RGBrgb(216, 199, 74)
HSLhsl(53, 65%, 57%)
HSVhsv(53, 66%, 85%)
CMYKcmyk(0%, 7.9%, 65.7%, 15.3%)
CIE-LABlab(79.58, -8.41, 62.33)
CIE-LCHlch(79.58, 62.89, 97.69°)
OKLaboklab(82.11% -0.0286 0.1406)
OKLCHoklch(82.11% 0.144 101.5)
XYZxyz(49.9804, 55.9423, 14.6425)
Luminance0.5594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C74A #4A5BD8
analogous
#D8804A #D8C74A #A2D84A
triadic
#D8C74A #4AD8C7 #C74AD8
tetradic
#D8C74A #4AD880 #4A5BD8 #D84AA2
square
#D8C74A #4AD880 #4A5BD8 #D84AA2
split-complementary
#D8C74A #4AA2D8 #804AD8
monochromatic
#8A7D1E #BCAB29 #D8C74A #E3D77C #EEE6AF

Accessibility & contrast

On white

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

On black

12.19
#D8C74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C74A
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C74A#FFFFFF#000000##000000
##D8C74A1.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8c74a;
/* rgb */ color: rgb(216, 199, 74);
/* oklch */ color: oklch(82.1% 0.144 101.5);
Tailwind
colors: {
  custom: {
    50: '#e7d783',
    500: '#d8c74a',
    950: '#000000',
  },
}
SCSS
$custom: #d8c74a;
$custom-light: #e7d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c74a",
  "rgb": {
    "r": 216,
    "g": 199,
    "b": 74
  },
  "hsl": {
    "h": 52.817,
    "s": 64.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.8211,
    "c": 0.14351,
    "h": 101.5
  },
  "luminance": 0.5594
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D8C74A

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

Preview Lab → · Contrast checker → · Palette generator →

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