#D4D152#D4D152

#D4D152 is a very light, vivid yellow. Relative luminance 0.602; OKLCH L 83.9% C 0.147 H 107.9°. Best body text is #000000 at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#D4D152
RGBrgb(212, 209, 82)
HSLhsl(59, 60%, 58%)
HSVhsv(59, 61%, 83%)
CMYKcmyk(0%, 1.4%, 61.3%, 16.9%)
CIE-LABlab(81.95, -14.64, 61.42)
CIE-LCHlch(81.95, 63.14, 103.41°)
OKLaboklab(83.94% -0.0452 0.14)
OKLCHoklch(83.94% 0.147 107.9)
XYZxyz(51.4765, 60.2087, 16.8908)
Luminance0.6021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D152 #5255D4
analogous
#D49052 #D4D152 #96D452
triadic
#D4D152 #52D4D1 #D152D4
tetradic
#D4D152 #52D490 #5255D4 #D45296
square
#D4D152 #52D490 #5255D4 #D45296
split-complementary
#D4D152 #5296D4 #9052D4
monochromatic
#898722 #BAB72E #D4D152 #E0DE83 #ECEBB4

Accessibility & contrast

On white

1.61
#D4D152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.04
#D4D152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D152
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D152#FFFFFF#000000##000000
##D4D1521.001.6113.0413.04
#FFFFFF1.611.0021.0021.00
#00000013.0421.001.001.00
##00000013.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C943
Deuteranopia (green-blind)
#E3CE5A
Tritanopia (blue-blind)
#E2C4B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d4d152;
/* rgb */ color: rgb(212, 209, 82);
/* oklch */ color: oklch(83.9% 0.147 107.9);
Tailwind
colors: {
  custom: {
    50: '#e4de88',
    500: '#d4d152',
    950: '#000000',
  },
}
SCSS
$custom: #d4d152;
$custom-light: #e4de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d152",
  "rgb": {
    "r": 212,
    "g": 209,
    "b": 82
  },
  "hsl": {
    "h": 58.615,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.83936,
    "c": 0.14711,
    "h": 107.9
  },
  "luminance": 0.60207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4D152

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

Preview Lab → · Contrast checker → · Palette generator →

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