#D7C762#D7C762

#D7C762 is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.3% C 0.123 H 100.4°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#D7C762
RGBrgb(215, 199, 98)
HSLhsl(52, 59%, 61%)
HSVhsv(52, 54%, 84%)
CMYKcmyk(0%, 7.4%, 54.4%, 15.7%)
CIE-LABlab(79.71, -7.18, 51.85)
CIE-LCHlch(79.71, 52.35, 97.89°)
OKLaboklab(82.27% -0.0224 0.1214)
OKLCHoklch(82.27% 0.123 100.4)
XYZxyz(50.6541, 56.1777, 19.7281)
Luminance0.5618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C762 #6272D7
analogous
#D78D62 #D7C762 #ADD762
triadic
#D7C762 #62D7C7 #C762D7
tetradic
#D7C762 #62D78D #6272D7 #D762AD
square
#D7C762 #62D78D #6272D7 #D762AD
split-complementary
#D7C762 #62ADD7 #8D62D7
monochromatic
#988827 #C9B433 #D7C762 #E3D893 #F0EAC4

Accessibility & contrast

On white

1.72
#D7C762 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#D7C762 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C762
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C762#FFFFFF#000000##000000
##D7C7621.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C258
Deuteranopia (green-blind)
#DCC867
Tritanopia (blue-blind)
#E6BBB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d7c762;
/* rgb */ color: rgb(215, 199, 98);
/* oklch */ color: oklch(82.3% 0.123 100.4);
Tailwind
colors: {
  custom: {
    50: '#e6d791',
    500: '#d7c762',
    950: '#000000',
  },
}
SCSS
$custom: #d7c762;
$custom-light: #e6d791;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c762",
  "rgb": {
    "r": 215,
    "g": 199,
    "b": 98
  },
  "hsl": {
    "h": 51.795,
    "s": 59.391,
    "l": 61.373
  },
  "oklch": {
    "l": 0.82266,
    "c": 0.12348,
    "h": 100.4
  },
  "luminance": 0.56176
}

Semantic roles & 50–950 ramp

primary
#D7C762
secondary
#414D9D
accent
#36C71E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7C762

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

Preview Lab → · Contrast checker → · Palette generator →

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