#D7D842#D7D842

#D7D842 is a very light, vivid yellow. Relative luminance 0.640; OKLCH L 85.5% C 0.165 H 109.8°. Best body text is #000000 at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#D7D842
RGBrgb(215, 216, 66)
HSLhsl(60, 66%, 55%)
HSVhsv(60, 69%, 85%)
CMYKcmyk(0.5%, 0%, 69.4%, 15.3%)
CIE-LABlab(83.94, -17.78, 69.77)
CIE-LCHlch(83.94, 72.00, 104.30°)
OKLaboklab(85.55% -0.0558 0.155)
OKLCHoklch(85.55% 0.165 109.8)
XYZxyz(53.5654, 63.9537, 14.6758)
Luminance0.6395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D842 #4342D8
analogous
#D88E42 #D7D842 #8CD842
triadic
#D7D842 #42D7D8 #D842D7
tetradic
#D7D842 #42D88E #4342D8 #D8428C
square
#D7D842 #42D88E #4342D8 #D8428C
split-complementary
#D7D842 #428CD8 #8E42D8
monochromatic
#84841B #B6B726 #D7D842 #E2E275 #ECEDA7

Accessibility & contrast

On white

1.52
#D7D842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.79
#D7D842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D842
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D842#FFFFFF#000000##000000
##D7D8421.001.5213.7913.79
#FFFFFF1.521.0021.0021.00
#00000013.7921.001.001.00
##00000013.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF28
Deuteranopia (green-blind)
#EBD34D
Tritanopia (blue-blind)
#E6CBBB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d7d842;
/* rgb */ color: rgb(215, 216, 66);
/* oklch */ color: oklch(85.5% 0.165 109.8);
Tailwind
colors: {
  custom: {
    50: '#e7e380',
    500: '#d7d842',
    950: '#000000',
  },
}
SCSS
$custom: #d7d842;
$custom-light: #e7e380;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d842",
  "rgb": {
    "r": 215,
    "g": 216,
    "b": 66
  },
  "hsl": {
    "h": 60.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.85546,
    "c": 0.16479,
    "h": 109.8
  },
  "luminance": 0.63952
}

Semantic roles & 50–950 ramp

primary
#D7D842
secondary
#34338B
accent
#3FE940
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7D842

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

Preview Lab → · Contrast checker → · Palette generator →

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