#D7D772#D7D772

#D7D772 is a very light, vivid yellow. Relative luminance 0.643; OKLCH L 85.8% C 0.124 H 108.8°. Best body text is #000000 at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#D7D772
RGBrgb(215, 215, 114)
HSLhsl(60, 56%, 65%)
HSVhsv(60, 47%, 84%)
CMYKcmyk(0%, 0%, 47%, 15.7%)
CIE-LABlab(84.10, -13.91, 49.47)
CIE-LCHlch(84.10, 51.38, 105.70°)
OKLaboklab(85.81% -0.04 0.1177)
OKLCHoklch(85.81% 0.124 108.8)
XYZxyz(55.3632, 64.2641, 25.4041)
Luminance0.6426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D772 #7272D7
analogous
#D7A572 #D7D772 #A5D772
triadic
#D7D772 #72D7D7 #D772D7
tetradic
#D7D772 #72D7A5 #7272D7 #D772A5
square
#D7D772 #72D7A5 #7272D7 #D772A5
split-complementary
#D7D772 #72A5D7 #A572D7
monochromatic
#A1A12E #C9C942 #D7D772 #E5E5A2 #F2F2D1

Accessibility & contrast

On white

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

On black

13.85
#D7D772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D772
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D772#FFFFFF#000000##000000
##D7D7721.001.5213.8513.85
#FFFFFF1.521.0021.0021.00
#00000013.8521.001.001.00
##00000013.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D069
Deuteranopia (green-blind)
#E7D477
Tritanopia (blue-blind)
#E3CCC0
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d7d772;
/* rgb */ color: rgb(215, 215, 114);
/* oklch */ color: oklch(85.8% 0.124 108.8);
Tailwind
colors: {
  custom: {
    50: '#e5e39d',
    500: '#d7d772',
    950: '#000000',
  },
}
SCSS
$custom: #d7d772;
$custom-light: #e5e39d;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d772",
  "rgb": {
    "r": 215,
    "g": 215,
    "b": 114
  },
  "hsl": {
    "h": 60,
    "s": 55.801,
    "l": 64.51
  },
  "oklch": {
    "l": 0.85812,
    "c": 0.12429,
    "h": 108.8
  },
  "luminance": 0.64263
}

Semantic roles & 50–950 ramp

primary
#D7D772
secondary
#4848A5
accent
#22C322
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D7D772

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

Preview Lab → · Contrast checker → · Palette generator →

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