#D4D052#D4D052

#D4D052 is a very light, vivid yellow. Relative luminance 0.597; OKLCH L 83.7% C 0.146 H 107.4°. Best body text is #000000 at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#D4D052
RGBrgb(212, 208, 82)
HSLhsl(58, 60%, 58%)
HSVhsv(58, 61%, 83%)
CMYKcmyk(0%, 1.9%, 61.3%, 16.9%)
CIE-LABlab(81.69, -14.14, 61.13)
CIE-LCHlch(81.69, 62.75, 103.03°)
OKLaboklab(83.72% -0.0438 0.1394)
OKLCHoklch(83.72% 0.146 107.4)
XYZxyz(51.2319, 59.7196, 16.8093)
Luminance0.5972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D052 #5256D4
analogous
#D48F52 #D4D052 #97D452
triadic
#D4D052 #52D4D0 #D052D4
tetradic
#D4D052 #52D48F #5256D4 #D45297
square
#D4D052 #52D48F #5256D4 #D45297
split-complementary
#D4D052 #5297D4 #8F52D4
monochromatic
#898622 #BAB62E #D4D052 #E0DD83 #ECEBB4

Accessibility & contrast

On white

1.62
#D4D052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.94
#D4D052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D052
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D052#FFFFFF#000000##000000
##D4D0521.001.6212.9412.94
#FFFFFF1.621.0021.0021.00
#00000012.9421.001.001.00
##00000012.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C843
Deuteranopia (green-blind)
#E3CD59
Tritanopia (blue-blind)
#E2C3B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d4d052;
/* rgb */ color: rgb(212, 208, 82);
/* oklch */ color: oklch(83.7% 0.146 107.4);
Tailwind
colors: {
  custom: {
    50: '#e4de88',
    500: '#d4d052',
    950: '#000000',
  },
}
SCSS
$custom: #d4d052;
$custom-light: #e4de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d052",
  "rgb": {
    "r": 212,
    "g": 208,
    "b": 82
  },
  "hsl": {
    "h": 58.154,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.83724,
    "c": 0.14611,
    "h": 107.4
  },
  "luminance": 0.59718
}

Semantic roles & 50–950 ramp

primary
#D4D052
secondary
#3B3D90
accent
#49E344
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D4D052

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

Preview Lab → · Contrast checker → · Palette generator →

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