#9D7D1D#9D7D1D

#9D7D1D is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.4% C 0.114 H 88.8°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9D7D1D
RGBrgb(157, 125, 29)
HSLhsl(45, 69%, 36%)
HSVhsv(45, 82%, 62%)
CMYKcmyk(0%, 20.4%, 81.5%, 38.4%)
CIE-LABlab(53.95, 2.97, 52.68)
CIE-LCHlch(53.95, 52.77, 86.77°)
OKLaboklab(60.41% 0.0023 0.114)
OKLCHoklch(60.41% 0.114 88.8)
XYZxyz(21.4613, 21.9255, 4.2638)
Luminance0.2192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7D1D #1D3D9D
analogous
#9D3D1D #9D7D1D #7D9D1D
triadic
#9D7D1D #1D9D7D #7D1D9D
tetradic
#9D7D1D #1D9D3D #1D3D9D #9D1D7D
square
#9D7D1D #1D9D3D #1D3D9D #9D1D7D
split-complementary
#9D7D1D #1D7D9D #3D1D9D
monochromatic
#362B0A #695413 #9D7D1D #D1A627 #E0BD55

Accessibility & contrast

On white

3.90
#9D7D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#9D7D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7D1D
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7D1D#FFFFFF#000000##000000
##9D7D1D1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C06
Deuteranopia (green-blind)
#948523
Tritanopia (blue-blind)
#AB716B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9d7d1d;
/* rgb */ color: rgb(157, 125, 29);
/* oklch */ color: oklch(60.4% 0.114 88.8);
Tailwind
colors: {
  custom: {
    50: '#bea262',
    500: '#9d7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #9d7d1d;
$custom-light: #bea262;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7d1d",
  "rgb": {
    "r": 157,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 45,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60413,
    "c": 0.11398,
    "h": 88.8
  },
  "luminance": 0.21924
}

Semantic roles & 50–950 ramp

primary
#9D7D1D
secondary
#536FC3
accent
#68EC3C
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9D7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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