#D4C64D#D4C64D

#D4C64D is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.6% C 0.140 H 102.7°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#D4C64D
RGBrgb(212, 198, 77)
HSLhsl(54, 61%, 57%)
HSVhsv(54, 64%, 83%)
CMYKcmyk(0%, 6.6%, 63.7%, 16.9%)
CIE-LABlab(79.00, -9.41, 60.36)
CIE-LCHlch(79.00, 61.09, 98.86°)
OKLaboklab(81.57% -0.0309 0.137)
OKLCHoklch(81.57% 0.14 102.7)
XYZxyz(48.6869, 54.9230, 15.0564)
Luminance0.5492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C64D #4D5BD4
analogous
#D4834D #D4C64D #9FD44D
triadic
#D4C64D #4DD4C6 #C64DD4
tetradic
#D4C64D #4DD483 #4D5BD4 #D44D9F
square
#D4C64D #4DD483 #4D5BD4 #D44D9F
split-complementary
#D4C64D #4D9FD4 #834DD4
monochromatic
#867C20 #B7A92C #D4C64D #E0D67E #ECE6B0

Accessibility & contrast

On white

1.75
#D4C64D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#D4C64D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C64D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C64D#FFFFFF#000000##000000
##D4C64D1.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03E
Deuteranopia (green-blind)
#DBC654
Tritanopia (blue-blind)
#E3B9AD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c64d;
/* rgb */ color: rgb(212, 198, 77);
/* oklch */ color: oklch(81.6% 0.140 102.7);
Tailwind
colors: {
  custom: {
    50: '#e4d784',
    500: '#d4c64d',
    950: '#000000',
  },
}
SCSS
$custom: #d4c64d;
$custom-light: #e4d784;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c64d",
  "rgb": {
    "r": 212,
    "g": 198,
    "b": 77
  },
  "hsl": {
    "h": 53.778,
    "s": 61.086,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81571,
    "c": 0.14048,
    "h": 102.7
  },
  "luminance": 0.54921
}

Semantic roles & 50–950 ramp

primary
#D4C64D
secondary
#38418D
accent
#54E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C64D

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

Preview Lab → · Contrast checker → · Palette generator →

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