#D4C841#D4C841

#D4C841 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#D4C841
RGBrgb(212, 200, 65)
HSLhsl(55, 63%, 54%)
HSVhsv(55, 69%, 83%)
CMYKcmyk(0%, 5.7%, 69.3%, 16.9%)
CIE-LABlab(79.44, -11.10, 65.61)
CIE-LCHlch(79.44, 66.54, 99.60°)
OKLaboklab(81.89% -0.037 0.1462)
OKLCHoklch(81.89% 0.151 104.2)
XYZxyz(48.7618, 55.6892, 13.1806)
Luminance0.5569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C841 #414DD4
analogous
#D47F41 #D4C841 #97D441
triadic
#D4C841 #41D4C8 #C841D4
tetradic
#D4C841 #41D47F #414DD4 #D44197
square
#D4C841 #41D47F #414DD4 #D44197
split-complementary
#D4C841 #4197D4 #7F41D4
monochromatic
#7E761D #B0A528 #D4C841 #DFD673 #EBE5A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C841#FFFFFF#000000##000000
##D4C8411.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)
#D9C12C
Deuteranopia (green-blind)
#DEC84A
Tritanopia (blue-blind)
#E4BAAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d4c841;
/* rgb */ color: rgb(212, 200, 65);
/* oklch */ color: oklch(81.9% 0.151 104.2);
Tailwind
colors: {
  custom: {
    50: '#e5d87e',
    500: '#d4c841',
    950: '#000000',
  },
}
SCSS
$custom: #d4c841;
$custom-light: #e5d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c841",
  "rgb": {
    "r": 212,
    "g": 200,
    "b": 65
  },
  "hsl": {
    "h": 55.102,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81892,
    "c": 0.15079,
    "h": 104.2
  },
  "luminance": 0.55687
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4C841

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

Preview Lab → · Contrast checker → · Palette generator →

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