#9B7F22#9B7F22

#9B7F22 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.7% C 0.112 H 91.2°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9B7F22
RGBrgb(155, 127, 34)
HSLhsl(46, 64%, 37%)
HSVhsv(46, 78%, 61%)
CMYKcmyk(0%, 18.1%, 78.1%, 39.2%)
CIE-LABlab(54.31, 1.12, 51.14)
CIE-LCHlch(54.31, 51.15, 88.75°)
OKLaboklab(60.66% -0.0024 0.1119)
OKLCHoklch(60.66% 0.112 91.2)
XYZxyz(21.3969, 22.2641, 4.6835)
Luminance0.2226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7F22 #223E9B
analogous
#9B4322 #9B7F22 #7A9B22
triadic
#9B7F22 #229B7F #7F229B
tetradic
#9B7F22 #229B43 #223E9B #9B227A
square
#9B7F22 #229B43 #223E9B #9B227A
split-complementary
#9B7F22 #227A9B #43229B
monochromatic
#372D0C #695617 #9B7F22 #CDA82D #DBBE5C

Accessibility & contrast

On white

3.85
#9B7F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9B7F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7F22
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7F22#FFFFFF#000000##000000
##9B7F221.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D10
Deuteranopia (green-blind)
#958527
Tritanopia (blue-blind)
#A8746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9b7f22;
/* rgb */ color: rgb(155, 127, 34);
/* oklch */ color: oklch(60.7% 0.112 91.2);
Tailwind
colors: {
  custom: {
    50: '#bca365',
    500: '#9b7f22',
    950: '#000000',
  },
}
SCSS
$custom: #9b7f22;
$custom-light: #bca365;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7f22",
  "rgb": {
    "r": 155,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 46.116,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60656,
    "c": 0.11188,
    "h": 91.2
  },
  "luminance": 0.22263
}

Semantic roles & 50–950 ramp

primary
#9B7F22
secondary
#5971C0
accent
#67E741
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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