#D2C873#D2C873

#D2C873 is a very light, moderate yellow. Relative luminance 0.562; OKLCH L 82.3% C 0.107 H 102.5°. Best body text is #000000 at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#D2C873
RGBrgb(210, 200, 115)
HSLhsl(54, 51%, 64%)
HSVhsv(54, 45%, 82%)
CMYKcmyk(0%, 4.8%, 45.2%, 17.6%)
CIE-LABlab(79.76, -8.23, 43.58)
CIE-LCHlch(79.76, 44.35, 100.70°)
OKLaboklab(82.26% -0.0233 0.1048)
OKLCHoklch(82.26% 0.107 102.5)
XYZxyz(50.3283, 56.2495, 24.4224)
Luminance0.5625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C873 #737DD2
analogous
#D29873 #D2C873 #ACD273
triadic
#D2C873 #73D2C8 #C873D2
tetradic
#D2C873 #73D298 #737DD2 #D273AC
square
#D2C873 #73D298 #737DD2 #D273AC
split-complementary
#D2C873 #73ACD2 #9873D2
monochromatic
#998E31 #C3B645 #D2C873 #E1DAA1 #F0ECD0

Accessibility & contrast

On white

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

On black

12.25
#D2C873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C873
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C873#FFFFFF#000000##000000
##D2C8731.001.7112.2512.25
#FFFFFF1.711.0021.0021.00
#00000012.2521.001.001.00
##00000012.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C36C
Deuteranopia (green-blind)
#D9C877
Tritanopia (blue-blind)
#DFBEB4
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d2c873;
/* rgb */ color: rgb(210, 200, 115);
/* oklch */ color: oklch(82.3% 0.107 102.5);
Tailwind
colors: {
  custom: {
    50: '#e1d89d',
    500: '#d2c873',
    950: '#000000',
  },
}
SCSS
$custom: #d2c873;
$custom-light: #e1d89d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c873",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 115
  },
  "hsl": {
    "h": 53.684,
    "s": 51.351,
    "l": 63.725
  },
  "oklch": {
    "l": 0.82262,
    "c": 0.10735,
    "h": 102.5
  },
  "luminance": 0.56248
}

Semantic roles & 50–950 ramp

primary
#D2C873
secondary
#4B549F
accent
#37BF27
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #D2C873

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

Preview Lab → · Contrast checker → · Palette generator →

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