#D4C541#D4C541

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

Color values

HEX#D4C541
RGBrgb(212, 197, 65)
HSLhsl(54, 63%, 54%)
HSVhsv(54, 69%, 83%)
CMYKcmyk(0%, 7.1%, 69.3%, 16.9%)
CIE-LABlab(78.64, -9.57, 64.82)
CIE-LCHlch(78.64, 65.52, 98.40°)
OKLaboklab(81.26% -0.0327 0.1445)
OKLCHoklch(81.26% 0.148 102.7)
XYZxyz(48.0738, 54.3132, 12.9512)
Luminance0.5431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C541 #4150D4
analogous
#D47C41 #D4C541 #99D441
triadic
#D4C541 #41D4C5 #C541D4
tetradic
#D4C541 #41D47C #4150D4 #D44199
square
#D4C541 #41D47C #4150D4 #D44199
split-complementary
#D4C541 #4199D4 #7C41D4
monochromatic
#7E741D #B0A228 #D4C541 #DFD473 #EBE3A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C541#FFFFFF#000000##000000
##D4C5411.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)
#D7BF2D
Deuteranopia (green-blind)
#DBC649
Tritanopia (blue-blind)
#E4B7AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d4c541;
/* rgb */ color: rgb(212, 197, 65);
/* oklch */ color: oklch(81.3% 0.148 102.7);
Tailwind
colors: {
  custom: {
    50: '#e5d67d',
    500: '#d4c541',
    950: '#000000',
  },
}
SCSS
$custom: #d4c541;
$custom-light: #e5d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c541",
  "rgb": {
    "r": 212,
    "g": 197,
    "b": 65
  },
  "hsl": {
    "h": 53.878,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81262,
    "c": 0.14818,
    "h": 102.7
  },
  "luminance": 0.54311
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4C541

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

Preview Lab → · Contrast checker → · Palette generator →

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