#D1D742#D1D742

#D1D742 is a very light, vivid yellow. Relative luminance 0.625; OKLCH L 84.8% C 0.165 H 111.7°. Best body text is #000000 at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#D1D742
RGBrgb(209, 215, 66)
HSLhsl(62, 65%, 55%)
HSVhsv(62, 69%, 84%)
CMYKcmyk(2.8%, 0%, 69.3%, 15.7%)
CIE-LABlab(83.21, -19.78, 68.89)
CIE-LCHlch(83.21, 71.67, 106.02°)
OKLaboklab(84.84% -0.0611 0.1534)
OKLCHoklch(84.84% 0.165 111.7)
XYZxyz(51.5799, 62.5508, 14.5096)
Luminance0.6255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D742 #4842D7
analogous
#D79242 #D1D742 #87D742
triadic
#D1D742 #42D1D7 #D742D1
tetradic
#D1D742 #42D792 #4842D7 #D74287
square
#D1D742 #42D792 #4842D7 #D74287
split-complementary
#D1D742 #4287D7 #9242D7
monochromatic
#7F831C #B0B526 #D1D742 #DDE275 #EAECA7

Accessibility & contrast

On white

1.55
#D1D742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.51
#D1D742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D742
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D742#FFFFFF#000000##000000
##D1D7421.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD29
Deuteranopia (green-blind)
#E8D14D
Tritanopia (blue-blind)
#DFCABA
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d1d742;
/* rgb */ color: rgb(209, 215, 66);
/* oklch */ color: oklch(84.8% 0.165 111.7);
Tailwind
colors: {
  custom: {
    50: '#e3e380',
    500: '#d1d742',
    950: '#000000',
  },
}
SCSS
$custom: #d1d742;
$custom-light: #e3e380;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d742",
  "rgb": {
    "r": 209,
    "g": 215,
    "b": 66
  },
  "hsl": {
    "h": 62.416,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84842,
    "c": 0.16509,
    "h": 111.7
  },
  "luminance": 0.6255
}

Semantic roles & 50–950 ramp

primary
#D1D742
secondary
#37348A
accent
#40E847
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1D742

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

Preview Lab → · Contrast checker → · Palette generator →

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