#D7DC42#D7DC42

#D7DC42 is a very light, vivid yellow. Relative luminance 0.660; OKLCH L 86.4% C 0.169 H 111.3°. Best body text is #000000 at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#D7DC42
RGBrgb(215, 220, 66)
HSLhsl(62, 69%, 56%)
HSVhsv(62, 70%, 86%)
CMYKcmyk(2.3%, 0%, 70%, 13.7%)
CIE-LABlab(85.01, -19.74, 70.81)
CIE-LCHlch(85.01, 73.51, 105.58°)
OKLaboklab(86.4% -0.0613 0.1573)
OKLCHoklch(86.4% 0.169 111.3)
XYZxyz(54.6027, 66.0282, 15.0216)
Luminance0.6603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7DC42 #4742DC
analogous
#DC9442 #D7DC42 #8ADC42
triadic
#D7DC42 #42D7DC #DC42D7
tetradic
#D7DC42 #42DC94 #4742DC #DC428A
square
#D7DC42 #42DC94 #4742DC #DC428A
split-complementary
#D7DC42 #428ADC #9442DC
monochromatic
#868A1A #B9BE23 #D7DC42 #E2E676 #EDEFA9

Accessibility & contrast

On white

1.48
#D7DC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.21
#D7DC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7DC42
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7DC42#FFFFFF#000000##000000
##D7DC421.001.4814.2114.21
#FFFFFF1.481.0021.0021.00
#00000014.2121.001.001.00
##00000014.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD227
Deuteranopia (green-blind)
#EED64E
Tritanopia (blue-blind)
#E6CFBE
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #d7dc42;
/* rgb */ color: rgb(215, 220, 66);
/* oklch */ color: oklch(86.4% 0.169 111.3);
Tailwind
colors: {
  custom: {
    50: '#e7e680',
    500: '#d7dc42',
    950: '#000000',
  },
}
SCSS
$custom: #d7dc42;
$custom-light: #e7e680;
$custom-dark: #000000;
JSON
{
  "hex": "#d7dc42",
  "rgb": {
    "r": 215,
    "g": 220,
    "b": 66
  },
  "hsl": {
    "h": 61.948,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.864,
    "c": 0.16879,
    "h": 111.3
  },
  "luminance": 0.66027
}

Semantic roles & 50–950 ramp

primary
#D7DC42
secondary
#353290
accent
#3CEC42
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7DC42

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

Preview Lab → · Contrast checker → · Palette generator →

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