#D4C54A#D4C54A

#D4C54A is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.3% C 0.142 H 102.3°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#D4C54A
RGBrgb(212, 197, 74)
HSLhsl(53, 62%, 56%)
HSVhsv(53, 65%, 83%)
CMYKcmyk(0%, 7.1%, 65.1%, 16.9%)
CIE-LABlab(78.71, -9.08, 61.31)
CIE-LCHlch(78.71, 61.98, 98.42°)
OKLaboklab(81.34% -0.0303 0.1386)
OKLCHoklch(81.34% 0.142 102.3)
XYZxyz(48.3556, 54.4259, 14.4354)
Luminance0.5442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C54A #4A59D4
analogous
#D4804A #D4C54A #9ED44A
triadic
#D4C54A #4AD4C5 #C54AD4
tetradic
#D4C54A #4AD480 #4A59D4 #D44A9E
square
#D4C54A #4AD480 #4A59D4 #D44A9E
split-complementary
#D4C54A #4A9ED4 #804AD4
monochromatic
#84791F #B6A72B #D4C54A #E0D57B #EBE5AD

Accessibility & contrast

On white

1.77
#D4C54A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.88
#D4C54A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C54A
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C54A#FFFFFF#000000##000000
##D4C54A1.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF3A
Deuteranopia (green-blind)
#DBC651
Tritanopia (blue-blind)
#E3B8AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d4c54a;
/* rgb */ color: rgb(212, 197, 74);
/* oklch */ color: oklch(81.3% 0.142 102.3);
Tailwind
colors: {
  custom: {
    50: '#e4d682',
    500: '#d4c54a',
    950: '#000000',
  },
}
SCSS
$custom: #d4c54a;
$custom-light: #e4d682;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c54a",
  "rgb": {
    "r": 212,
    "g": 197,
    "b": 74
  },
  "hsl": {
    "h": 53.478,
    "s": 61.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81335,
    "c": 0.14186,
    "h": 102.3
  },
  "luminance": 0.54424
}

Semantic roles & 50–950 ramp

primary
#D4C54A
secondary
#37408B
accent
#55E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C54A

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

Preview Lab → · Contrast checker → · Palette generator →

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