#D4C948#D4C948

#D4C948 is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.2% C 0.147 H 104.4°. Best body text is #000000 at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#D4C948
RGBrgb(212, 201, 72)
HSLhsl(55, 62%, 56%)
HSVhsv(55, 66%, 83%)
CMYKcmyk(0%, 5.2%, 66%, 16.9%)
CIE-LABlab(79.75, -11.23, 63.21)
CIE-LCHlch(79.75, 64.20, 100.07°)
OKLaboklab(82.16% -0.0366 0.1423)
OKLCHoklch(82.16% 0.147 104.4)
XYZxyz(49.2096, 56.2401, 14.3929)
Luminance0.5624 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C948 #4853D4
analogous
#D48348 #D4C948 #99D448
triadic
#D4C948 #48D4C9 #C948D4
tetradic
#D4C948 #48D483 #4853D4 #D44899
square
#D4C948 #48D483 #4853D4 #D44899
split-complementary
#D4C948 #4899D4 #8348D4
monochromatic
#837B1F #B4AA2A #D4C948 #E0D87A #EBE6AB

Accessibility & contrast

On white

1.71
#D4C948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.25
#D4C948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C948
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C948#FFFFFF#000000##000000
##D4C9481.001.7112.2512.25
#FFFFFF1.711.0021.0021.00
#00000012.2521.001.001.00
##00000012.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC236
Deuteranopia (green-blind)
#DEC850
Tritanopia (blue-blind)
#E3BCAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d4c948;
/* rgb */ color: rgb(212, 201, 72);
/* oklch */ color: oklch(82.2% 0.147 104.4);
Tailwind
colors: {
  custom: {
    50: '#e5d982',
    500: '#d4c948',
    950: '#000000',
  },
}
SCSS
$custom: #d4c948;
$custom-light: #e5d982;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c948",
  "rgb": {
    "r": 212,
    "g": 201,
    "b": 72
  },
  "hsl": {
    "h": 55.286,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.82158,
    "c": 0.14692,
    "h": 104.4
  },
  "luminance": 0.56238
}

Semantic roles & 50–950 ramp

primary
#D4C948
secondary
#363D8A
accent
#50E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C948

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

Preview Lab → · Contrast checker → · Palette generator →

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