#D7D158#D7D158

#D7D158 is a very light, vivid yellow. Relative luminance 0.608; OKLCH L 84.2% C 0.142 H 106.4°. Best body text is #000000 at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#D7D158
RGBrgb(215, 209, 88)
HSLhsl(57, 61%, 59%)
HSVhsv(57, 59%, 84%)
CMYKcmyk(0%, 2.8%, 59.1%, 15.7%)
CIE-LABlab(82.25, -13.00, 59.25)
CIE-LCHlch(82.25, 60.66, 102.38°)
OKLaboklab(84.25% -0.0401 0.1361)
OKLCHoklch(84.25% 0.142 106.4)
XYZxyz(52.5879, 60.7542, 18.1872)
Luminance0.6075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D158 #585ED7
analogous
#D79158 #D7D158 #9ED758
triadic
#D7D158 #58D7D1 #D158D7
tetradic
#D7D158 #58D791 #585ED7 #D7589E
square
#D7D158 #58D791 #585ED7 #D7589E
split-complementary
#D7D158 #589ED7 #9158D7
monochromatic
#928C23 #C3BC2F #D7D158 #E3DF89 #EFECBB

Accessibility & contrast

On white

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

On black

13.15
#D7D158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D158
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D158#FFFFFF#000000##000000
##D7D1581.001.6013.1513.15
#FFFFFF1.601.0021.0021.00
#00000013.1521.001.001.00
##00000013.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CA4A
Deuteranopia (green-blind)
#E4CF5F
Tritanopia (blue-blind)
#E5C4B7
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d7d158;
/* rgb */ color: rgb(215, 209, 88);
/* oklch */ color: oklch(84.2% 0.142 106.4);
Tailwind
colors: {
  custom: {
    50: '#e6de8c',
    500: '#d7d158',
    950: '#000000',
  },
}
SCSS
$custom: #d7d158;
$custom-light: #e6de8c;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d158",
  "rgb": {
    "r": 215,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 57.165,
    "s": 61.353,
    "l": 59.412
  },
  "oklch": {
    "l": 0.84246,
    "c": 0.1419,
    "h": 106.4
  },
  "luminance": 0.60753
}

Semantic roles & 50–950 ramp

primary
#D7D158
secondary
#3C4197
accent
#4BE443
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D7D158

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

Preview Lab → · Contrast checker → · Palette generator →

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