#D7C771#D7C771

#D7C771 is a very light, moderate yellow. Relative luminance 0.565; OKLCH L 82.5% C 0.109 H 99.0°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#D7C771
RGBrgb(215, 199, 113)
HSLhsl(51, 56%, 64%)
HSVhsv(51, 47%, 84%)
CMYKcmyk(0%, 7.4%, 47.4%, 15.7%)
CIE-LABlab(79.89, -5.88, 44.83)
CIE-LCHlch(79.89, 45.21, 97.48°)
OKLaboklab(82.46% -0.017 0.1074)
OKLCHoklch(82.46% 0.109 99)
XYZxyz(51.4298, 56.4880, 23.8138)
Luminance0.5649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C771 #7181D7
analogous
#D79471 #D7C771 #B4D771
triadic
#D7C771 #71D7C7 #C771D7
tetradic
#D7C771 #71D794 #7181D7 #D771B4
square
#D7C771 #71D794 #7181D7 #D771B4
split-complementary
#D7C771 #71B4D7 #9471D7
monochromatic
#A08E2D #CAB441 #D7C771 #E4DAA1 #F2EDD0

Accessibility & contrast

On white

1.71
#D7C771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.30
#D7C771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C771
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C771#FFFFFF#000000##000000
##D7C7711.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C36A
Deuteranopia (green-blind)
#DAC975
Tritanopia (blue-blind)
#E5BCB3
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d7c771;
/* rgb */ color: rgb(215, 199, 113);
/* oklch */ color: oklch(82.5% 0.109 99.0);
Tailwind
colors: {
  custom: {
    50: '#e5d79b',
    500: '#d7c771',
    950: '#000000',
  },
}
SCSS
$custom: #d7c771;
$custom-light: #e5d79b;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c771",
  "rgb": {
    "r": 215,
    "g": 199,
    "b": 113
  },
  "hsl": {
    "h": 50.588,
    "s": 56.044,
    "l": 64.314
  },
  "oklch": {
    "l": 0.82463,
    "c": 0.10871,
    "h": 99
  },
  "luminance": 0.56486
}

Semantic roles & 50–950 ramp

primary
#D7C771
secondary
#4856A4
accent
#3BC422
background
#FEFEFC
surface
#FDFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D7C771

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

Preview Lab → · Contrast checker → · Palette generator →

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