#D4C440#D4C440

#D4C440 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.0% C 0.148 H 102.3°. Best body text is #000000 at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#D4C440
RGBrgb(212, 196, 64)
HSLhsl(54, 63%, 54%)
HSVhsv(54, 70%, 83%)
CMYKcmyk(0%, 7.5%, 69.8%, 16.9%)
CIE-LABlab(78.37, -9.11, 64.93)
CIE-LCHlch(78.37, 65.57, 97.99°)
OKLaboklab(81.05% -0.0315 0.1446)
OKLCHoklch(81.05% 0.148 102.3)
XYZxyz(47.8188, 53.8491, 12.7246)
Luminance0.5385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C440 #4050D4
analogous
#D47A40 #D4C440 #9AD440
triadic
#D4C440 #40D4C4 #C440D4
tetradic
#D4C440 #40D47A #4050D4 #D4409A
square
#D4C440 #40D47A #4050D4 #D4409A
split-complementary
#D4C440 #409AD4 #7A40D4
monochromatic
#7D731C #AFA127 #D4C440 #DFD372 #EAE3A4

Accessibility & contrast

On white

1.78
#D4C440 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.77
#D4C440 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C440
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C440#FFFFFF#000000##000000
##D4C4401.001.7811.7711.77
#FFFFFF1.781.0021.0021.00
#00000011.7721.001.001.00
##00000011.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2C
Deuteranopia (green-blind)
#DBC548
Tritanopia (blue-blind)
#E4B6AA
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d4c440;
/* rgb */ color: rgb(212, 196, 64);
/* oklch */ color: oklch(81.0% 0.148 102.3);
Tailwind
colors: {
  custom: {
    50: '#e5d57d',
    500: '#d4c440',
    950: '#000000',
  },
}
SCSS
$custom: #d4c440;
$custom-light: #e5d57d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c440",
  "rgb": {
    "r": 212,
    "g": 196,
    "b": 64
  },
  "hsl": {
    "h": 53.514,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81045,
    "c": 0.14798,
    "h": 102.3
  },
  "luminance": 0.53847
}

Semantic roles & 50–950 ramp

primary
#D4C440
secondary
#333C85
accent
#53E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C440

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

Preview Lab → · Contrast checker → · Palette generator →

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