#D4C64F#D4C64F

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

Color values

HEX#D4C64F
RGBrgb(212, 198, 79)
HSLhsl(54, 61%, 57%)
HSVhsv(54, 63%, 83%)
CMYKcmyk(0%, 6.6%, 62.7%, 16.9%)
CIE-LABlab(79.01, -9.28, 59.54)
CIE-LCHlch(79.01, 60.25, 98.86°)
OKLaboklab(81.59% -0.0303 0.1356)
OKLCHoklch(81.59% 0.139 102.6)
XYZxyz(48.7586, 54.9516, 15.4340)
Luminance0.5495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C64F #4F5DD4
analogous
#D4834F #D4C64F #A0D44F
triadic
#D4C64F #4FD4C6 #C64FD4
tetradic
#D4C64F #4FD483 #4F5DD4 #D44FA0
square
#D4C64F #4FD483 #4F5DD4 #D44FA0
split-complementary
#D4C64F #4FA0D4 #834FD4
monochromatic
#877D21 #B9AA2D #D4C64F #E0D680 #ECE6B1

Accessibility & contrast

On white

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

On black

11.99
#D4C64F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C64F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C64F#FFFFFF#000000##000000
##D4C64F1.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4c64f;
/* rgb */ color: rgb(212, 198, 79);
/* oklch */ color: oklch(81.6% 0.139 102.6);
Tailwind
colors: {
  custom: {
    50: '#e4d785',
    500: '#d4c64f',
    950: '#000000',
  },
}
SCSS
$custom: #d4c64f;
$custom-light: #e4d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c64f",
  "rgb": {
    "r": 212,
    "g": 198,
    "b": 79
  },
  "hsl": {
    "h": 53.684,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.8159,
    "c": 0.13893,
    "h": 102.6
  },
  "luminance": 0.5495
}

Semantic roles & 50–950 ramp

primary
#D4C64F
secondary
#39428E
accent
#55E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C64F

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

Preview Lab → · Contrast checker → · Palette generator →

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