#D7DF42#D7DF42

#D7DF42 is a very light, vivid yellow. Relative luminance 0.676; OKLCH L 87.0% C 0.172 H 112.4°. Best body text is #000000 at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#D7DF42
RGBrgb(215, 223, 66)
HSLhsl(63, 71%, 57%)
HSVhsv(63, 70%, 87%)
CMYKcmyk(3.6%, 0%, 70.4%, 12.5%)
CIE-LABlab(85.81, -21.20, 71.60)
CIE-LCHlch(85.81, 74.67, 106.49°)
OKLaboklab(87.04% -0.0654 0.1589)
OKLCHoklch(87.04% 0.172 112.4)
XYZxyz(55.3971, 67.6171, 15.2864)
Luminance0.6762 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7DF42 #4A42DF
analogous
#DF9842 #D7DF42 #89DF42
triadic
#D7DF42 #42D7DF #DF42D7
tetradic
#D7DF42 #42DF98 #4A42DF #DF4289
square
#D7DF42 #42DF98 #4A42DF #DF4289
split-complementary
#D7DF42 #4289DF #9842DF
monochromatic
#888E18 #BBC321 #D7DF42 #E2E876 #EDF1AB

Accessibility & contrast

On white

1.45
#D7DF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.52
#D7DF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7DF42
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7DF42#FFFFFF#000000##000000
##D7DF421.001.4514.5214.52
#FFFFFF1.451.0021.0021.00
#00000014.5221.001.001.00
##00000014.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D526
Deuteranopia (green-blind)
#F0D84E
Tritanopia (blue-blind)
#E5D2C0
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #d7df42;
/* rgb */ color: rgb(215, 223, 66);
/* oklch */ color: oklch(87.0% 0.172 112.4);
Tailwind
colors: {
  custom: {
    50: '#e7e880',
    500: '#d7df42',
    950: '#000000',
  },
}
SCSS
$custom: #d7df42;
$custom-light: #e7e880;
$custom-dark: #000000;
JSON
{
  "hex": "#d7df42",
  "rgb": {
    "r": 215,
    "g": 223,
    "b": 66
  },
  "hsl": {
    "h": 63.057,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.87043,
    "c": 0.17183,
    "h": 112.4
  },
  "luminance": 0.67616
}

Semantic roles & 50–950 ramp

primary
#D7DF42
secondary
#373294
accent
#3AEE43
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16160B
muted
#85847E

Preview Lab

Preview with #D7DF42

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

Preview Lab → · Contrast checker → · Palette generator →

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