#D4D952#D4D952

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

Color values

HEX#D4D952
RGBrgb(212, 217, 82)
HSLhsl(62, 64%, 59%)
HSVhsv(62, 62%, 85%)
CMYKcmyk(2.3%, 0%, 62.2%, 14.9%)
CIE-LABlab(84.09, -18.61, 63.70)
CIE-LCHlch(84.09, 66.36, 106.28°)
OKLaboklab(85.64% -0.0564 0.1448)
OKLCHoklch(85.64% 0.155 111.3)
XYZxyz(53.4887, 64.2332, 17.5616)
Luminance0.6423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D952 #5752D9
analogous
#D99A52 #D4D952 #90D952
triadic
#D4D952 #52D4D9 #D952D4
tetradic
#D4D952 #52D99A #5752D9 #D95290
square
#D4D952 #52D99A #5752D9 #D95290
split-complementary
#D4D952 #5290D9 #9A52D9
monochromatic
#8D9120 #BDC32B #D4D952 #E0E484 #EDEFB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4D952#FFFFFF#000000##000000
##D4D9521.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)
#E9D041
Deuteranopia (green-blind)
#EAD45B
Tritanopia (blue-blind)
#E2CCBD
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d4d952;
/* rgb */ color: rgb(212, 217, 82);
/* oklch */ color: oklch(85.6% 0.155 111.3);
Tailwind
colors: {
  custom: {
    50: '#e4e489',
    500: '#d4d952',
    950: '#000000',
  },
}
SCSS
$custom: #d4d952;
$custom-light: #e4e489;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d952",
  "rgb": {
    "r": 212,
    "g": 217,
    "b": 82
  },
  "hsl": {
    "h": 62.222,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.8564,
    "c": 0.15541,
    "h": 111.3
  },
  "luminance": 0.64232
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4D952

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

Preview Lab → · Contrast checker → · Palette generator →

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