#9D7E1F#9D7E1F

#9D7E1F is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.113 H 89.4°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9D7E1F
RGBrgb(157, 126, 31)
HSLhsl(45, 67%, 37%)
HSVhsv(45, 80%, 62%)
CMYKcmyk(0%, 19.7%, 80.3%, 38.4%)
CIE-LABlab(54.23, 2.48, 52.24)
CIE-LCHlch(54.23, 52.30, 87.28°)
OKLaboklab(60.64% 0.0011 0.1135)
OKLCHoklch(60.64% 0.113 89.4)
XYZxyz(21.6141, 22.1902, 4.4408)
Luminance0.2219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7E1F #1F3E9D
analogous
#9D3F1F #9D7E1F #7D9D1F
triadic
#9D7E1F #1F9D7E #7E1F9D
tetradic
#9D7E1F #1F9D3F #1F3E9D #9D1F7D
square
#9D7E1F #1F9D3F #1F3E9D #9D1F7D
split-complementary
#9D7E1F #1F7D9D #3F1F9D
monochromatic
#372C0B #6A5515 #9D7E1F #D0A729 #DEBD58

Accessibility & contrast

On white

3.86
#9D7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#9D7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7E1F
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7E1F#FFFFFF#000000##000000
##9D7E1F1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0A
Deuteranopia (green-blind)
#958525
Tritanopia (blue-blind)
#AB726C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9d7e1f;
/* rgb */ color: rgb(157, 126, 31);
/* oklch */ color: oklch(60.6% 0.113 89.4);
Tailwind
colors: {
  custom: {
    50: '#bea363',
    500: '#9d7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9d7e1f;
$custom-light: #bea363;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7e1f",
  "rgb": {
    "r": 157,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 45.238,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60637,
    "c": 0.11346,
    "h": 89.4
  },
  "luminance": 0.22189
}

Semantic roles & 50–950 ramp

primary
#9D7E1F
secondary
#5670C2
accent
#68EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9D7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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