#D7C871#D7C871

#D7C871 is a very light, moderate yellow. Relative luminance 0.569; OKLCH L 82.7% C 0.110 H 99.7°. Best body text is #000000 at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#D7C871
RGBrgb(215, 200, 113)
HSLhsl(51, 56%, 64%)
HSVhsv(51, 47%, 84%)
CMYKcmyk(0%, 7%, 47.4%, 15.7%)
CIE-LABlab(80.15, -6.40, 45.15)
CIE-LCHlch(80.15, 45.60, 98.07°)
OKLaboklab(82.67% -0.0185 0.1081)
OKLCHoklch(82.67% 0.11 99.7)
XYZxyz(51.6607, 56.9497, 23.8907)
Luminance0.5695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C871 #7180D7
analogous
#D79571 #D7C871 #B3D771
triadic
#D7C871 #71D7C8 #C871D7
tetradic
#D7C871 #71D795 #7180D7 #D771B3
square
#D7C871 #71D795 #7180D7 #D771B3
split-complementary
#D7C871 #71B3D7 #9571D7
monochromatic
#A08F2D #CAB641 #D7C871 #E4DAA1 #F2EDD0

Accessibility & contrast

On white

1.69
#D7C871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.39
#D7C871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C871
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C871#FFFFFF#000000##000000
##D7C8711.001.6912.3912.39
#FFFFFF1.691.0021.0021.00
#00000012.3921.001.001.00
##00000012.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C36A
Deuteranopia (green-blind)
#DBC975
Tritanopia (blue-blind)
#E4BDB3
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d7c871;
/* rgb */ color: rgb(215, 200, 113);
/* oklch */ color: oklch(82.7% 0.110 99.7);
Tailwind
colors: {
  custom: {
    50: '#e5d89b',
    500: '#d7c871',
    950: '#000000',
  },
}
SCSS
$custom: #d7c871;
$custom-light: #e5d89b;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c871",
  "rgb": {
    "r": 215,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 51.176,
    "s": 56.044,
    "l": 64.314
  },
  "oklch": {
    "l": 0.82669,
    "c": 0.10965,
    "h": 99.7
  },
  "luminance": 0.56948
}

Semantic roles & 50–950 ramp

primary
#D7C871
secondary
#4855A4
accent
#3AC422
background
#FEFEFC
surface
#FDFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D7C871

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

Preview Lab → · Contrast checker → · Palette generator →

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