#D4C940#D4C940

#D4C940 is a very light, vivid yellow. Relative luminance 0.561; OKLCH L 82.1% C 0.152 H 104.7°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#D4C940
RGBrgb(212, 201, 64)
HSLhsl(56, 63%, 54%)
HSVhsv(56, 70%, 83%)
CMYKcmyk(0%, 5.2%, 69.8%, 16.9%)
CIE-LABlab(79.69, -11.65, 66.24)
CIE-LCHlch(79.69, 67.26, 99.98°)
OKLaboklab(82.1% -0.0387 0.1474)
OKLCHoklch(82.1% 0.152 104.7)
XYZxyz(48.9654, 56.1424, 13.1068)
Luminance0.5614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C940 #404BD4
analogous
#D47F40 #D4C940 #95D440
triadic
#D4C940 #40D4C9 #C940D4
tetradic
#D4C940 #40D47F #404BD4 #D44095
square
#D4C940 #40D47F #404BD4 #D44095
split-complementary
#D4C940 #4095D4 #7F40D4
monochromatic
#7D761C #AFA527 #D4C940 #DFD772 #EAE5A4

Accessibility & contrast

On white

1.72
#D4C940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#D4C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C940
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C940#FFFFFF#000000##000000
##D4C9401.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4c940;
/* rgb */ color: rgb(212, 201, 64);
/* oklch */ color: oklch(82.1% 0.152 104.7);
Tailwind
colors: {
  custom: {
    50: '#e5d97d',
    500: '#d4c940',
    950: '#000000',
  },
}
SCSS
$custom: #d4c940;
$custom-light: #e5d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c940",
  "rgb": {
    "r": 212,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 55.541,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.82096,
    "c": 0.15234,
    "h": 104.7
  },
  "luminance": 0.56141
}

Semantic roles & 50–950 ramp

primary
#D4C940
secondary
#333985
accent
#4EE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C940

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

Preview Lab → · Contrast checker → · Palette generator →

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