#9B7B1A#9B7B1A

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

Color values

HEX#9B7B1A
RGBrgb(155, 123, 26)
HSLhsl(45, 71%, 35%)
HSVhsv(45, 83%, 61%)
CMYKcmyk(0%, 20.6%, 83.2%, 39.2%)
CIE-LABlab(53.18, 3.07, 52.92)
CIE-LCHlch(53.18, 53.01, 86.68°)
OKLaboklab(59.75% 0.0024 0.1139)
OKLCHoklch(59.75% 0.114 88.8)
XYZxyz(20.7883, 21.2105, 3.9762)
Luminance0.2121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7B1A #1A3A9B
analogous
#9B3A1A #9B7B1A #7B9B1A
triadic
#9B7B1A #1A9B7B #7B1A9B
tetradic
#9B7B1A #1A9B3A #1A3A9B #9B1A7B
square
#9B7B1A #1A9B3A #1A3A9B #9B1A7B
split-complementary
#9B7B1A #1A7B9B #3A1A9B
monochromatic
#322808 #675111 #9B7B1A #CFA523 #E1BD4E

Accessibility & contrast

On white

4.01
#9B7B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9B7B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7B1A
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7B1A#FFFFFF#000000##000000
##9B7B1A1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#928320
Tritanopia (blue-blind)
#A96F69
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9b7b1a;
/* rgb */ color: rgb(155, 123, 26);
/* oklch */ color: oklch(59.8% 0.114 88.8);
Tailwind
colors: {
  custom: {
    50: '#bda060',
    500: '#9b7b1a',
    950: '#000000',
  },
}
SCSS
$custom: #9b7b1a;
$custom-light: #bda060;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7b1a",
  "rgb": {
    "r": 155,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 45.116,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59754,
    "c": 0.11393,
    "h": 88.8
  },
  "luminance": 0.21209
}

Semantic roles & 50–950 ramp

primary
#9B7B1A
secondary
#4D6BC4
accent
#66EE3A
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E05
muted
#827E7A

Preview Lab

Preview with #9B7B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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