#D4D242#D4D242

#D4D242 is a very light, vivid yellow. Relative luminance 0.605; OKLCH L 84.0% C 0.159 H 108.6°. Best body text is #000000 at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#D4D242
RGBrgb(212, 210, 66)
HSLhsl(59, 63%, 55%)
HSVhsv(59, 69%, 83%)
CMYKcmyk(0%, 0.9%, 68.9%, 16.9%)
CIE-LABlab(82.10, -16.06, 67.88)
CIE-LCHlch(82.10, 69.75, 103.31°)
OKLaboklab(84.02% -0.0509 0.1512)
OKLCHoklch(84.02% 0.159 108.6)
XYZxyz(51.1832, 60.4852, 14.1319)
Luminance0.6048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D242 #4244D4
analogous
#D48942 #D4D242 #8DD442
triadic
#D4D242 #42D4D2 #D242D4
tetradic
#D4D242 #42D489 #4244D4 #D4428D
square
#D4D242 #42D489 #4244D4 #D4428D
split-complementary
#D4D242 #428DD4 #8942D4
monochromatic
#7F7D1D #B1AF28 #D4D242 #DFDE74 #EBEAA6

Accessibility & contrast

On white

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

On black

13.10
#D4D242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D242
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D242#FFFFFF#000000##000000
##D4D2421.001.6013.1013.10
#FFFFFF1.601.0021.0021.00
#00000013.1021.001.001.00
##00000013.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA2B
Deuteranopia (green-blind)
#E5CE4C
Tritanopia (blue-blind)
#E3C5B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d4d242;
/* rgb */ color: rgb(212, 210, 66);
/* oklch */ color: oklch(84.0% 0.159 108.6);
Tailwind
colors: {
  custom: {
    50: '#e5df7f',
    500: '#d4d242',
    950: '#000000',
  },
}
SCSS
$custom: #d4d242;
$custom-light: #e5df7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d242",
  "rgb": {
    "r": 212,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 59.178,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.84018,
    "c": 0.15948,
    "h": 108.6
  },
  "luminance": 0.60484
}

Semantic roles & 50–950 ramp

primary
#D4D242
secondary
#343586
accent
#44E642
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D4D242

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

Preview Lab → · Contrast checker → · Palette generator →

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