#9B8722#9B8722

#9B8722 is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.4% C 0.117 H 97.4°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9B8722
RGBrgb(155, 135, 34)
HSLhsl(50, 64%, 37%)
HSVhsv(50, 78%, 61%)
CMYKcmyk(0%, 12.9%, 78.1%, 39.2%)
CIE-LABlab(56.50, -3.32, 53.18)
CIE-LCHlch(56.50, 53.28, 93.58°)
OKLaboklab(62.39% -0.015 0.1162)
OKLCHoklch(62.39% 0.117 97.4)
XYZxyz(22.4714, 24.4132, 5.0417)
Luminance0.2441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8722 #22369B
analogous
#9B4B22 #9B8722 #729B22
triadic
#9B8722 #229B87 #87229B
tetradic
#9B8722 #229B4B #22369B #9B2272
square
#9B8722 #229B4B #22369B #9B2272
split-complementary
#9B8722 #22729B #4B229B
monochromatic
#37300C #695B17 #9B8722 #CDB32D #DBC65C

Accessibility & contrast

On white

3.57
#9B8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#9B8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8722
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8722#FFFFFF#000000##000000
##9B87221.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840D
Deuteranopia (green-blind)
#9A8A29
Tritanopia (blue-blind)
#A87C74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9b8722;
/* rgb */ color: rgb(155, 135, 34);
/* oklch */ color: oklch(62.4% 0.117 97.4);
Tailwind
colors: {
  custom: {
    50: '#bca966',
    500: '#9b8722',
    950: '#000000',
  },
}
SCSS
$custom: #9b8722;
$custom-light: #bca966;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8722",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 50.083,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6239,
    "c": 0.11717,
    "h": 97.4
  },
  "luminance": 0.24412
}

Semantic roles & 50–950 ramp

primary
#9B8722
secondary
#596AC0
accent
#5CE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9B8722

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

Preview Lab → · Contrast checker → · Palette generator →

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