#9B7D22#9B7D22

#9B7D22 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.111 H 89.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9B7D22
RGBrgb(155, 125, 34)
HSLhsl(45, 64%, 37%)
HSVhsv(45, 78%, 61%)
CMYKcmyk(0%, 19.4%, 78.1%, 39.2%)
CIE-LABlab(53.76, 2.24, 50.63)
CIE-LCHlch(53.76, 50.68, 87.46°)
OKLaboklab(60.23% 0.0009 0.1108)
OKLCHoklch(60.23% 0.111 89.6)
XYZxyz(21.1412, 21.7527, 4.5982)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7D22 #22409B
analogous
#9B4122 #9B7D22 #7D9B22
triadic
#9B7D22 #229B7D #7D229B
tetradic
#9B7D22 #229B41 #22409B #9B227D
square
#9B7D22 #229B41 #22409B #9B227D
split-complementary
#9B7D22 #227D9B #41229B
monochromatic
#372C0C #695517 #9B7D22 #CDA52D #DBBC5C

Accessibility & contrast

On white

3.93
#9B7D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#9B7D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7D22
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7D22#FFFFFF#000000##000000
##9B7D221.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C11
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#A8726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9b7d22;
/* rgb */ color: rgb(155, 125, 34);
/* oklch */ color: oklch(60.2% 0.111 89.6);
Tailwind
colors: {
  custom: {
    50: '#bda264',
    500: '#9b7d22',
    950: '#000000',
  },
}
SCSS
$custom: #9b7d22;
$custom-light: #bda264;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7d22",
  "rgb": {
    "r": 155,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 45.124,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60228,
    "c": 0.11077,
    "h": 89.6
  },
  "luminance": 0.21751
}

Semantic roles & 50–950 ramp

primary
#9B7D22
secondary
#5973C0
accent
#6AE741
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9B7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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