#D4D954#D4D954

#D4D954 is a very light, vivid yellow. Relative luminance 0.643; OKLCH L 85.7% C 0.154 H 111.3°. Best body text is #000000 at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#D4D954
RGBrgb(212, 217, 84)
HSLhsl(62, 64%, 59%)
HSVhsv(62, 61%, 85%)
CMYKcmyk(2.3%, 0%, 61.3%, 14.9%)
CIE-LABlab(84.10, -18.48, 62.89)
CIE-LCHlch(84.10, 65.55, 106.37°)
OKLaboklab(85.66% -0.0558 0.1434)
OKLCHoklch(85.66% 0.154 111.3)
XYZxyz(53.5660, 64.2641, 17.9683)
Luminance0.6426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D954 #5954D9
analogous
#D99C54 #D4D954 #92D954
triadic
#D4D954 #54D4D9 #D954D4
tetradic
#D4D954 #54D99C #5954D9 #D95492
square
#D4D954 #54D99C #5954D9 #D95492
split-complementary
#D4D954 #5492D9 #9C54D9
monochromatic
#8E9220 #BEC42C #D4D954 #E1E486 #EDEFB8

Accessibility & contrast

On white

1.52
#D4D954 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.85
#D4D954 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D954
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D954#FFFFFF#000000##000000
##D4D9541.001.5213.8513.85
#FFFFFF1.521.0021.0021.00
#00000013.8521.001.001.00
##00000013.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D044
Deuteranopia (green-blind)
#E9D45C
Tritanopia (blue-blind)
#E2CDBD
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d4d954;
/* rgb */ color: rgb(212, 217, 84);
/* oklch */ color: oklch(85.7% 0.154 111.3);
Tailwind
colors: {
  custom: {
    50: '#e4e48a',
    500: '#d4d954',
    950: '#000000',
  },
}
SCSS
$custom: #d4d954;
$custom-light: #e4e48a;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d954",
  "rgb": {
    "r": 212,
    "g": 217,
    "b": 84
  },
  "hsl": {
    "h": 62.256,
    "s": 63.636,
    "l": 59.02
  },
  "oklch": {
    "l": 0.85658,
    "c": 0.15387,
    "h": 111.3
  },
  "luminance": 0.64263
}

Semantic roles & 50–950 ramp

primary
#D4D954
secondary
#3E3A97
accent
#41E747
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D4D954

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

Preview Lab → · Contrast checker → · Palette generator →

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