#D4D252#D4D252

#D4D252 is a very light, vivid yellow. Relative luminance 0.607; OKLCH L 84.1% C 0.148 H 108.3°. Best body text is #000000 at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#D4D252
RGBrgb(212, 210, 82)
HSLhsl(59, 60%, 58%)
HSVhsv(59, 61%, 83%)
CMYKcmyk(0%, 0.9%, 61.3%, 16.9%)
CIE-LABlab(82.22, -15.14, 61.70)
CIE-LCHlch(82.22, 63.53, 103.79°)
OKLaboklab(84.15% -0.0466 0.1406)
OKLCHoklch(84.15% 0.148 108.3)
XYZxyz(51.7226, 60.7009, 16.9729)
Luminance0.6070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D252 #5254D4
analogous
#D49152 #D4D252 #95D452
triadic
#D4D252 #52D4D2 #D252D4
tetradic
#D4D252 #52D491 #5254D4 #D45295
square
#D4D252 #52D491 #5254D4 #D45295
split-complementary
#D4D252 #5295D4 #9152D4
monochromatic
#898822 #BAB82E #D4D252 #E0DF83 #ECEBB4

Accessibility & contrast

On white

1.60
#D4D252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.14
#D4D252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D252
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D252#FFFFFF#000000##000000
##D4D2521.001.6013.1413.14
#FFFFFF1.601.0021.0021.00
#00000013.1421.001.001.00
##00000013.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CA42
Deuteranopia (green-blind)
#E4CF5A
Tritanopia (blue-blind)
#E2C5B7
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d4d252;
/* rgb */ color: rgb(212, 210, 82);
/* oklch */ color: oklch(84.1% 0.148 108.3);
Tailwind
colors: {
  custom: {
    50: '#e4df88',
    500: '#d4d252',
    950: '#000000',
  },
}
SCSS
$custom: #d4d252;
$custom-light: #e4df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d252",
  "rgb": {
    "r": 212,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 59.077,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.84148,
    "c": 0.14813,
    "h": 108.3
  },
  "luminance": 0.60699
}

Semantic roles & 50–950 ramp

primary
#D4D252
secondary
#3B3C90
accent
#47E344
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D4D252

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

Preview Lab → · Contrast checker → · Palette generator →

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