#9B7D1D#9B7D1D

#9B7D1D is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.2% C 0.113 H 90.1°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9B7D1D
RGBrgb(155, 125, 29)
HSLhsl(46, 68%, 36%)
HSVhsv(46, 81%, 61%)
CMYKcmyk(0%, 19.4%, 81.3%, 39.2%)
CIE-LABlab(53.73, 2.05, 52.41)
CIE-LCHlch(53.73, 52.45, 87.77°)
OKLaboklab(60.2% -0.0002 0.1135)
OKLCHoklch(60.2% 0.113 90.1)
XYZxyz(21.0742, 21.7259, 4.2457)
Luminance0.2172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7D1D #1D3B9B
analogous
#9B3E1D #9B7D1D #7A9B1D
triadic
#9B7D1D #1D9B7D #7D1D9B
tetradic
#9B7D1D #1D9B3E #1D3B9B #9B1D7A
square
#9B7D1D #1D9B3E #1D3B9B #9B1D7A
split-complementary
#9B7D1D #1D7A9B #3E1D9B
monochromatic
#342A0A #675313 #9B7D1D #CFA727 #DFBE53

Accessibility & contrast

On white

3.93
#9B7D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#9B7D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7D1D
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7D1D#FFFFFF#000000##000000
##9B7D1D1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C06
Deuteranopia (green-blind)
#948423
Tritanopia (blue-blind)
#A8726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9b7d1d;
/* rgb */ color: rgb(155, 125, 29);
/* oklch */ color: oklch(60.2% 0.113 90.1);
Tailwind
colors: {
  custom: {
    50: '#bda262',
    500: '#9b7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #9b7d1d;
$custom-light: #bda262;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7d1d",
  "rgb": {
    "r": 155,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 45.714,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60197,
    "c": 0.11349,
    "h": 90.1
  },
  "luminance": 0.21725
}

Semantic roles & 50–950 ramp

primary
#9B7D1D
secondary
#526CC2
accent
#66EB3C
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9B7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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