#D7D142#D7D142

#D7D142 is a very light, vivid yellow. Relative luminance 0.604; OKLCH L 84.1% C 0.158 H 107.0°. Best body text is #000000 at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#D7D142
RGBrgb(215, 209, 66)
HSLhsl(58, 65%, 55%)
HSVhsv(58, 69%, 84%)
CMYKcmyk(0%, 2.8%, 69.3%, 15.7%)
CIE-LABlab(82.08, -14.31, 67.94)
CIE-LCHlch(82.08, 69.43, 101.90°)
OKLaboklab(84.06% -0.0461 0.1512)
OKLCHoklch(84.06% 0.158 107)
XYZxyz(51.8101, 60.4431, 14.0907)
Luminance0.6044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D142 #4248D7
analogous
#D78742 #D7D142 #92D742
triadic
#D7D142 #42D7D1 #D142D7
tetradic
#D7D142 #42D787 #4248D7 #D74292
square
#D7D142 #42D787 #4248D7 #D74292
split-complementary
#D7D142 #4292D7 #8742D7
monochromatic
#837F1C #B5B026 #D7D142 #E2DD75 #ECEAA7

Accessibility & contrast

On white

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

On black

13.09
#D7D142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D142
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D142#FFFFFF#000000##000000
##D7D1421.001.6013.0913.09
#FFFFFF1.601.0021.0021.00
#00000013.0921.001.001.00
##00000013.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C92B
Deuteranopia (green-blind)
#E5CF4C
Tritanopia (blue-blind)
#E6C3B5
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d7d142;
/* rgb */ color: rgb(215, 209, 66);
/* oklch */ color: oklch(84.1% 0.158 107.0);
Tailwind
colors: {
  custom: {
    50: '#e7de7f',
    500: '#d7d142',
    950: '#000000',
  },
}
SCSS
$custom: #d7d142;
$custom-light: #e7de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d142",
  "rgb": {
    "r": 215,
    "g": 209,
    "b": 66
  },
  "hsl": {
    "h": 57.584,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84059,
    "c": 0.15806,
    "h": 107
  },
  "luminance": 0.60441
}

Semantic roles & 50–950 ramp

primary
#D7D142
secondary
#34378A
accent
#47E840
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7D142

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

Preview Lab → · Contrast checker → · Palette generator →

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