#D7C873#D7C873

#D7C873 is a very light, moderate yellow. Relative luminance 0.570; OKLCH L 82.7% C 0.108 H 99.5°. Best body text is #000000 at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#D7C873
RGBrgb(215, 200, 115)
HSLhsl(51, 56%, 65%)
HSVhsv(51, 47%, 84%)
CMYKcmyk(0%, 7%, 46.5%, 15.7%)
CIE-LABlab(80.18, -6.21, 44.19)
CIE-LCHlch(80.18, 44.63, 98.00°)
OKLaboklab(82.7% -0.0178 0.1061)
OKLCHoklch(82.7% 0.108 99.5)
XYZxyz(51.7745, 56.9952, 24.4902)
Luminance0.5699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C873 #7382D7
analogous
#D79673 #D7C873 #B4D773
triadic
#D7C873 #73D7C8 #C873D7
tetradic
#D7C873 #73D796 #7382D7 #D773B4
square
#D7C873 #73D796 #7382D7 #D773B4
split-complementary
#D7C873 #73B4D7 #9673D7
monochromatic
#A1902E #C9B543 #D7C873 #E5DBA3 #F2EDD2

Accessibility & contrast

On white

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

On black

12.40
#D7C873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C873
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C873#FFFFFF#000000##000000
##D7C8731.001.6912.4012.40
#FFFFFF1.691.0021.0021.00
#00000012.4021.001.001.00
##00000012.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C46C
Deuteranopia (green-blind)
#DBC977
Tritanopia (blue-blind)
#E4BDB4
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d7c873;
/* rgb */ color: rgb(215, 200, 115);
/* oklch */ color: oklch(82.7% 0.108 99.5);
Tailwind
colors: {
  custom: {
    50: '#e5d89d',
    500: '#d7c873',
    950: '#000000',
  },
}
SCSS
$custom: #d7c873;
$custom-light: #e5d89d;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c873",
  "rgb": {
    "r": 215,
    "g": 200,
    "b": 115
  },
  "hsl": {
    "h": 51,
    "s": 55.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.82698,
    "c": 0.10757,
    "h": 99.5
  },
  "luminance": 0.56993
}

Semantic roles & 50–950 ramp

primary
#D7C873
secondary
#4957A5
accent
#3BC322
background
#FEFEFC
surface
#FDFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D7C873

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

Preview Lab → · Contrast checker → · Palette generator →

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