#9B7E22#9B7E22

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

Color values

HEX#9B7E22
RGBrgb(155, 126, 34)
HSLhsl(46, 64%, 37%)
HSVhsv(46, 78%, 61%)
CMYKcmyk(0%, 18.7%, 78.1%, 39.2%)
CIE-LABlab(54.03, 1.68, 50.89)
CIE-LCHlch(54.03, 50.92, 88.11°)
OKLaboklab(60.44% -0.0008 0.1113)
OKLCHoklch(60.44% 0.111 90.4)
XYZxyz(21.2684, 22.0071, 4.6406)
Luminance0.2201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7E22 #223F9B
analogous
#9B4222 #9B7E22 #7C9B22
triadic
#9B7E22 #229B7E #7E229B
tetradic
#9B7E22 #229B42 #223F9B #9B227C
square
#9B7E22 #229B42 #223F9B #9B227C
split-complementary
#9B7E22 #227C9B #42229B
monochromatic
#372C0C #695517 #9B7E22 #CDA72D #DBBD5C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B7E22#FFFFFF#000000##000000
##9B7E221.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)
#8D7C11
Deuteranopia (green-blind)
#948527
Tritanopia (blue-blind)
#A8736C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9b7e22;
/* rgb */ color: rgb(155, 126, 34);
/* oklch */ color: oklch(60.4% 0.111 90.4);
Tailwind
colors: {
  custom: {
    50: '#bda365',
    500: '#9b7e22',
    950: '#000000',
  },
}
SCSS
$custom: #9b7e22;
$custom-light: #bda365;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7e22",
  "rgb": {
    "r": 155,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 45.62,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60442,
    "c": 0.11131,
    "h": 90.4
  },
  "luminance": 0.22006
}

Semantic roles & 50–950 ramp

primary
#9B7E22
secondary
#5972C0
accent
#69E741
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9B7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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