#D4D542#D4D542

#D4D542 is a very light, vivid yellow. Relative luminance 0.620; OKLCH L 84.7% C 0.162 H 109.8°. Best body text is #000000 at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#D4D542
RGBrgb(212, 213, 66)
HSLhsl(60, 64%, 55%)
HSVhsv(60, 69%, 84%)
CMYKcmyk(0.5%, 0%, 69%, 16.5%)
CIE-LABlab(82.90, -17.55, 68.67)
CIE-LCHlch(82.90, 70.88, 104.34°)
OKLaboklab(84.66% -0.055 0.1528)
OKLCHoklch(84.66% 0.162 109.8)
XYZxyz(51.9308, 61.9804, 14.3811)
Luminance0.6198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D542 #4342D5
analogous
#D58C42 #D4D542 #8BD542
triadic
#D4D542 #42D4D5 #D542D4
tetradic
#D4D542 #42D58C #4342D5 #D5428B
square
#D4D542 #42D58C #4342D5 #D5428B
split-complementary
#D4D542 #428BD5 #8C42D5
monochromatic
#7F801C #B1B228 #D4D542 #DFE074 #EBEBA6

Accessibility & contrast

On white

1.57
#D4D542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.40
#D4D542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D542
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D542#FFFFFF#000000##000000
##D4D5421.001.5713.4013.40
#FFFFFF1.571.0021.0021.00
#00000013.4021.001.001.00
##00000013.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC2A
Deuteranopia (green-blind)
#E7D14D
Tritanopia (blue-blind)
#E3C8B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d4d542;
/* rgb */ color: rgb(212, 213, 66);
/* oklch */ color: oklch(84.7% 0.162 109.8);
Tailwind
colors: {
  custom: {
    50: '#e5e17f',
    500: '#d4d542',
    950: '#000000',
  },
}
SCSS
$custom: #d4d542;
$custom-light: #e5e17f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d542",
  "rgb": {
    "r": 212,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 60.408,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.84658,
    "c": 0.16243,
    "h": 109.8
  },
  "luminance": 0.61979
}

Semantic roles & 50–950 ramp

primary
#D4D542
secondary
#343487
accent
#41E742
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D4D542

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

Preview Lab → · Contrast checker → · Palette generator →

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