#D4C540#D4C540

#D4C540 is a light, vivid yellow. Relative luminance 0.543; OKLCH L 81.3% C 0.149 H 102.8°. Best body text is #000000 at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#D4C540
RGBrgb(212, 197, 64)
HSLhsl(54, 63%, 54%)
HSVhsv(54, 70%, 83%)
CMYKcmyk(0%, 7.1%, 69.8%, 16.9%)
CIE-LABlab(78.64, -9.62, 65.19)
CIE-LCHlch(78.64, 65.90, 98.40°)
OKLaboklab(81.26% -0.0329 0.1451)
OKLCHoklch(81.26% 0.149 102.8)
XYZxyz(48.0451, 54.3017, 12.8000)
Luminance0.5430 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C540 #404FD4
analogous
#D47B40 #D4C540 #99D440
triadic
#D4C540 #40D4C5 #C540D4
tetradic
#D4C540 #40D47B #404FD4 #D44099
square
#D4C540 #40D47B #404FD4 #D44099
split-complementary
#D4C540 #4099D4 #7B40D4
monochromatic
#7D741C #AFA227 #D4C540 #DFD472 #EAE3A4

Accessibility & contrast

On white

1.77
#D4C540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.86
#D4C540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C540
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C540#FFFFFF#000000##000000
##D4C5401.001.7711.8611.86
#FFFFFF1.771.0021.0021.00
#00000011.8621.001.001.00
##00000011.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#DBC649
Tritanopia (blue-blind)
#E4B7AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d4c540;
/* rgb */ color: rgb(212, 197, 64);
/* oklch */ color: oklch(81.3% 0.149 102.8);
Tailwind
colors: {
  custom: {
    50: '#e5d67d',
    500: '#d4c540',
    950: '#000000',
  },
}
SCSS
$custom: #d4c540;
$custom-light: #e5d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c540",
  "rgb": {
    "r": 212,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 53.919,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81255,
    "c": 0.14883,
    "h": 102.8
  },
  "luminance": 0.543
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4C540

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

Preview Lab → · Contrast checker → · Palette generator →

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