#D7E042#D7E042

#D7E042 is a very light, vivid yellow. Relative luminance 0.682; OKLCH L 87.3% C 0.173 H 112.7°. Best body text is #000000 at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#D7E042
RGBrgb(215, 224, 66)
HSLhsl(63, 72%, 57%)
HSVhsv(63, 71%, 88%)
CMYKcmyk(4%, 0%, 70.5%, 12.2%)
CIE-LABlab(86.08, -21.68, 71.86)
CIE-LCHlch(86.08, 75.06, 106.79°)
OKLaboklab(87.26% -0.0667 0.1595)
OKLCHoklch(87.26% 0.173 112.7)
XYZxyz(55.6651, 68.1530, 15.3757)
Luminance0.6815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7E042 #4B42E0
analogous
#E09A42 #D7E042 #88E042
triadic
#D7E042 #42D7E0 #E042D7
tetradic
#D7E042 #42E09A #4B42E0 #E04288
square
#D7E042 #42E09A #4B42E0 #E04288
split-complementary
#D7E042 #4288E0 #9A42E0
monochromatic
#899018 #BBC520 #D7E042 #E2E977 #EDF1AB

Accessibility & contrast

On white

1.44
#D7E042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.63
#D7E042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7E042
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7E042#FFFFFF#000000##000000
##D7E0421.001.4414.6314.63
#FFFFFF1.441.0021.0021.00
#00000014.6321.001.001.00
##00000014.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D625
Deuteranopia (green-blind)
#F1D94E
Tritanopia (blue-blind)
#E5D3C1
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #d7e042;
/* rgb */ color: rgb(215, 224, 66);
/* oklch */ color: oklch(87.3% 0.173 112.7);
Tailwind
colors: {
  custom: {
    50: '#e7e981',
    500: '#d7e042',
    950: '#000000',
  },
}
SCSS
$custom: #d7e042;
$custom-light: #e7e981;
$custom-dark: #000000;
JSON
{
  "hex": "#d7e042",
  "rgb": {
    "r": 215,
    "g": 224,
    "b": 66
  },
  "hsl": {
    "h": 63.418,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.87258,
    "c": 0.17286,
    "h": 112.7
  },
  "luminance": 0.68152
}

Semantic roles & 50–950 ramp

primary
#D7E042
secondary
#373195
accent
#39EF44
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16160B
muted
#85847E

Preview Lab

Preview with #D7E042

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

Preview Lab → · Contrast checker → · Palette generator →

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