#D4C74A#D4C74A

#D4C74A is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.8% C 0.144 H 103.4°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#D4C74A
RGBrgb(212, 199, 74)
HSLhsl(54, 62%, 56%)
HSVhsv(54, 65%, 83%)
CMYKcmyk(0%, 6.1%, 65.1%, 16.9%)
CIE-LABlab(79.24, -10.10, 61.86)
CIE-LCHlch(79.24, 62.68, 99.27°)
OKLaboklab(81.75% -0.0332 0.1398)
OKLCHoklch(81.75% 0.144 103.4)
XYZxyz(48.8128, 55.3402, 14.5878)
Luminance0.5534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C74A #4A57D4
analogous
#D4824A #D4C74A #9CD44A
triadic
#D4C74A #4AD4C7 #C74AD4
tetradic
#D4C74A #4AD482 #4A57D4 #D44A9C
square
#D4C74A #4AD482 #4A57D4 #D44A9C
split-complementary
#D4C74A #4A9CD4 #824AD4
monochromatic
#847B1F #B6A92B #D4C74A #E0D67B #EBE6AD

Accessibility & contrast

On white

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

On black

12.07
#D4C74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C74A
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C74A#FFFFFF#000000##000000
##D4C74A1.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4c74a;
/* rgb */ color: rgb(212, 199, 74);
/* oklch */ color: oklch(81.8% 0.144 103.4);
Tailwind
colors: {
  custom: {
    50: '#e4d783',
    500: '#d4c74a',
    950: '#000000',
  },
}
SCSS
$custom: #d4c74a;
$custom-light: #e4d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c74a",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 74
  },
  "hsl": {
    "h": 54.348,
    "s": 61.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81754,
    "c": 0.14364,
    "h": 103.4
  },
  "luminance": 0.55338
}

Semantic roles & 50–950 ramp

primary
#D4C74A
secondary
#373F8B
accent
#52E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C74A

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

Preview Lab → · Contrast checker → · Palette generator →

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