#9D7D1A#9D7D1A

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

Color values

HEX#9D7D1A
RGBrgb(157, 125, 26)
HSLhsl(45, 72%, 36%)
HSVhsv(45, 83%, 62%)
CMYKcmyk(0%, 20.4%, 83.4%, 38.4%)
CIE-LABlab(53.93, 2.87, 53.66)
CIE-LCHlch(53.93, 53.74, 86.94°)
OKLaboklab(60.4% 0.0017 0.1154)
OKLCHoklch(60.4% 0.115 89.2)
XYZxyz(21.4260, 21.9114, 4.0779)
Luminance0.2191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7D1A #1A3A9D
analogous
#9D3C1A #9D7D1A #7B9D1A
triadic
#9D7D1A #1A9D7D #7D1A9D
tetradic
#9D7D1A #1A9D3C #1A3A9D #9D1A7B
square
#9D7D1A #1A9D3C #1A3A9D #9D1A7B
split-complementary
#9D7D1A #1A7B9D #3C1A9D
monochromatic
#342909 #685311 #9D7D1A #D2A723 #E2BE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D7D1A#FFFFFF#000000##000000
##9D7D1A1.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)
#8D7C00
Deuteranopia (green-blind)
#948521
Tritanopia (blue-blind)
#AB716B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9d7d1a;
/* rgb */ color: rgb(157, 125, 26);
/* oklch */ color: oklch(60.4% 0.115 89.2);
Tailwind
colors: {
  custom: {
    50: '#bea261',
    500: '#9d7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #9d7d1a;
$custom-light: #bea261;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7d1a",
  "rgb": {
    "r": 157,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 45.344,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60397,
    "c": 0.11541,
    "h": 89.2
  },
  "luminance": 0.2191
}

Semantic roles & 50–950 ramp

primary
#9D7D1A
secondary
#4E6BC4
accent
#66EE39
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9D7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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