#9D873D#9D873D

#9D873D is a light, moderate yellow. Relative luminance 0.248; OKLCH L 62.8% C 0.097 H 92.9°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9D873D
RGBrgb(157, 135, 61)
HSLhsl(46, 44%, 43%)
HSVhsv(46, 61%, 62%)
CMYKcmyk(0%, 14%, 61.1%, 38.4%)
CIE-LABlab(56.91, -0.86, 42.04)
CIE-LCHlch(56.91, 42.04, 91.17°)
OKLaboklab(62.83% -0.0048 0.0972)
OKLCHoklch(62.83% 0.097 92.9)
XYZxyz(23.4119, 24.8341, 7.9743)
Luminance0.2483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D873D #3D539D
analogous
#9D573D #9D873D #839D3D
triadic
#9D873D #3D9D87 #873D9D
tetradic
#9D873D #3D9D57 #3D539D #9D3D83
square
#9D873D #3D9D57 #3D539D #9D3D83
split-complementary
#9D873D #3D839D #573D9D
monochromatic
#453B1B #71612C #9D873D #BEA759 #D0BE85

Accessibility & contrast

On white

3.52
#9D873D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#9D873D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D873D
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D873D#FFFFFF#000000##000000
##9D873D1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948535
Deuteranopia (green-blind)
#9A8B40
Tritanopia (blue-blind)
#A97D77
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d873d;
/* rgb */ color: rgb(157, 135, 61);
/* oklch */ color: oklch(62.8% 0.097 92.9);
Tailwind
colors: {
  custom: {
    50: '#bda975',
    500: '#9d873d',
    950: '#000000',
  },
}
SCSS
$custom: #9d873d;
$custom-light: #bda975;
$custom-dark: #000000;
JSON
{
  "hex": "#9d873d",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 61
  },
  "hsl": {
    "h": 46.25,
    "s": 44.037,
    "l": 42.745
  },
  "oklch": {
    "l": 0.62833,
    "c": 0.09733,
    "h": 92.9
  },
  "luminance": 0.24833
}

Semantic roles & 50–950 ramp

primary
#9D873D
secondary
#7C8ABA
accent
#71D454
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#120F08
muted
#817F7B

Preview Lab

Preview with #9D873D

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

Preview Lab → · Contrast checker → · Palette generator →

#9D873D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva