#D4C840#D4C840

#D4C840 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.9% C 0.151 H 104.2°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#D4C840
RGBrgb(212, 200, 64)
HSLhsl(55, 63%, 54%)
HSVhsv(55, 70%, 83%)
CMYKcmyk(0%, 5.7%, 69.8%, 16.9%)
CIE-LABlab(79.43, -11.15, 65.98)
CIE-LCHlch(79.43, 66.91, 99.59°)
OKLaboklab(81.88% -0.0372 0.1468)
OKLCHoklch(81.88% 0.151 104.2)
XYZxyz(48.7331, 55.6777, 13.0293)
Luminance0.5568 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C840 #404CD4
analogous
#D47E40 #D4C840 #96D440
triadic
#D4C840 #40D4C8 #C840D4
tetradic
#D4C840 #40D47E #404CD4 #D44096
square
#D4C840 #40D47E #404CD4 #D44096
split-complementary
#D4C840 #4096D4 #7E40D4
monochromatic
#7D751C #AFA427 #D4C840 #DFD672 #EAE5A4

Accessibility & contrast

On white

1.73
#D4C840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#D4C840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C840
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C840#FFFFFF#000000##000000
##D4C8401.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC12A
Deuteranopia (green-blind)
#DEC849
Tritanopia (blue-blind)
#E4BAAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d4c840;
/* rgb */ color: rgb(212, 200, 64);
/* oklch */ color: oklch(81.9% 0.151 104.2);
Tailwind
colors: {
  custom: {
    50: '#e5d87d',
    500: '#d4c840',
    950: '#000000',
  },
}
SCSS
$custom: #d4c840;
$custom-light: #e5d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c840",
  "rgb": {
    "r": 212,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 55.135,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81885,
    "c": 0.15145,
    "h": 104.2
  },
  "luminance": 0.55676
}

Semantic roles & 50–950 ramp

primary
#D4C840
secondary
#333A85
accent
#4FE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C840

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

Preview Lab → · Contrast checker → · Palette generator →

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