#D7D242#D7D242

#D7D242 is a very light, vivid yellow. Relative luminance 0.609; OKLCH L 84.3% C 0.159 H 107.4°. Best body text is #000000 at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#D7D242
RGBrgb(215, 210, 66)
HSLhsl(58, 65%, 55%)
HSVhsv(58, 69%, 84%)
CMYKcmyk(0%, 2.3%, 69.3%, 15.7%)
CIE-LABlab(82.34, -14.81, 68.20)
CIE-LCHlch(82.34, 69.79, 102.25°)
OKLaboklab(84.27% -0.0475 0.1517)
OKLCHoklch(84.27% 0.159 107.4)
XYZxyz(52.0562, 60.9353, 14.1728)
Luminance0.6093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D242 #4247D7
analogous
#D78842 #D7D242 #91D742
triadic
#D7D242 #42D7D2 #D242D7
tetradic
#D7D242 #42D788 #4247D7 #D74291
square
#D7D242 #42D788 #4247D7 #D74291
split-complementary
#D7D242 #4291D7 #8842D7
monochromatic
#837F1C #B5B126 #D7D242 #E2DE75 #ECEAA7

Accessibility & contrast

On white

1.59
#D7D242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.19
#D7D242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D242
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D242#FFFFFF#000000##000000
##D7D2421.001.5913.1913.19
#FFFFFF1.591.0021.0021.00
#00000013.1921.001.001.00
##00000013.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA2B
Deuteranopia (green-blind)
#E6CF4C
Tritanopia (blue-blind)
#E6C4B6
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d7d242;
/* rgb */ color: rgb(215, 210, 66);
/* oklch */ color: oklch(84.3% 0.159 107.4);
Tailwind
colors: {
  custom: {
    50: '#e7df7f',
    500: '#d7d242',
    950: '#000000',
  },
}
SCSS
$custom: #d7d242;
$custom-light: #e7df7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d242",
  "rgb": {
    "r": 215,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 57.987,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.8427,
    "c": 0.15899,
    "h": 107.4
  },
  "luminance": 0.60934
}

Semantic roles & 50–950 ramp

primary
#D7D242
secondary
#34368A
accent
#45E840
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7D242

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

Preview Lab → · Contrast checker → · Palette generator →

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