#D7D942#D7D942

#D7D942 is a very light, vivid yellow. Relative luminance 0.645; OKLCH L 85.8% C 0.166 H 110.2°. Best body text is #000000 at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#D7D942
RGBrgb(215, 217, 66)
HSLhsl(61, 67%, 55%)
HSVhsv(61, 70%, 85%)
CMYKcmyk(0.9%, 0%, 69.6%, 14.9%)
CIE-LABlab(84.21, -18.27, 70.03)
CIE-LCHlch(84.21, 72.37, 104.62°)
OKLaboklab(85.76% -0.0572 0.1556)
OKLCHoklch(85.76% 0.166 110.2)
XYZxyz(53.8224, 64.4676, 14.7615)
Luminance0.6447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D942 #4442D9
analogous
#D99042 #D7D942 #8BD942
triadic
#D7D942 #42D7D9 #D942D7
tetradic
#D7D942 #42D990 #4442D9 #D9428B
square
#D7D942 #42D990 #4442D9 #D9428B
split-complementary
#D7D942 #428BD9 #9042D9
monochromatic
#84861B #B7B925 #D7D942 #E2E375 #EDEDA8

Accessibility & contrast

On white

1.51
#D7D942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.89
#D7D942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D942
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D942#FFFFFF#000000##000000
##D7D9421.001.5113.8913.89
#FFFFFF1.511.0021.0021.00
#00000013.8921.001.001.00
##00000013.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD028
Deuteranopia (green-blind)
#EBD44D
Tritanopia (blue-blind)
#E6CCBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d7d942;
/* rgb */ color: rgb(215, 217, 66);
/* oklch */ color: oklch(85.8% 0.166 110.2);
Tailwind
colors: {
  custom: {
    50: '#e7e480',
    500: '#d7d942',
    950: '#000000',
  },
}
SCSS
$custom: #d7d942;
$custom-light: #e7e480;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d942",
  "rgb": {
    "r": 215,
    "g": 217,
    "b": 66
  },
  "hsl": {
    "h": 60.795,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.85759,
    "c": 0.16578,
    "h": 110.2
  },
  "luminance": 0.64466
}

Semantic roles & 50–950 ramp

primary
#D7D942
secondary
#34338C
accent
#3EE941
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7D942

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

Preview Lab → · Contrast checker → · Palette generator →

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