#9B7E1F#9B7E1F

#9B7E1F is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.113 H 90.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9B7E1F
RGBrgb(155, 126, 31)
HSLhsl(46, 67%, 36%)
HSVhsv(46, 80%, 61%)
CMYKcmyk(0%, 18.7%, 80%, 39.2%)
CIE-LABlab(54.02, 1.56, 51.97)
CIE-LCHlch(54.02, 51.99, 88.28°)
OKLaboklab(60.42% -0.0014 0.113)
OKLCHoklch(60.42% 0.113 90.7)
XYZxyz(21.2270, 21.9906, 4.4226)
Luminance0.2199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7E1F #1F3C9B
analogous
#9B401F #9B7E1F #7A9B1F
triadic
#9B7E1F #1F9B7E #7E1F9B
tetradic
#9B7E1F #1F9B40 #1F3C9B #9B1F7A
square
#9B7E1F #1F9B40 #1F3C9B #9B1F7A
split-complementary
#9B7E1F #1F7A9B #401F9B
monochromatic
#352B0B #685515 #9B7E1F #CEA729 #DDBE57

Accessibility & contrast

On white

3.89
#9B7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#9B7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7E1F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7E1F#FFFFFF#000000##000000
##9B7E1F1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0A
Deuteranopia (green-blind)
#948525
Tritanopia (blue-blind)
#A8736C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9b7e1f;
/* rgb */ color: rgb(155, 126, 31);
/* oklch */ color: oklch(60.4% 0.113 90.7);
Tailwind
colors: {
  custom: {
    50: '#bda363',
    500: '#9b7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9b7e1f;
$custom-light: #bda363;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7e1f",
  "rgb": {
    "r": 155,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 45.968,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60422,
    "c": 0.11299,
    "h": 90.7
  },
  "luminance": 0.21989
}

Semantic roles & 50–950 ramp

primary
#9B7E1F
secondary
#556EC1
accent
#66EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9B7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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