#9B8A22#9B8A22

#9B8A22 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.0% C 0.119 H 99.5°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9B8A22
RGBrgb(155, 138, 34)
HSLhsl(52, 64%, 37%)
HSVhsv(52, 78%, 61%)
CMYKcmyk(0%, 11%, 78.1%, 39.2%)
CIE-LABlab(57.33, -4.97, 53.95)
CIE-LCHlch(57.33, 54.18, 95.26°)
OKLaboklab(63.05% -0.0197 0.1179)
OKLCHoklch(63.05% 0.119 99.5)
XYZxyz(22.8959, 25.2621, 5.1831)
Luminance0.2526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A22 #22339B
analogous
#9B4D22 #9B8A22 #709B22
triadic
#9B8A22 #229B8A #8A229B
tetradic
#9B8A22 #229B4D #22339B #9B2270
square
#9B8A22 #229B4D #22339B #9B2270
split-complementary
#9B8A22 #22709B #4D229B
monochromatic
#37310C #695D17 #9B8A22 #CDB72D #DBC95C

Accessibility & contrast

On white

3.47
#9B8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#9B8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A22
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A22#FFFFFF#000000##000000
##9B8A221.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860B
Deuteranopia (green-blind)
#9D8C29
Tritanopia (blue-blind)
#A87F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a22;
/* rgb */ color: rgb(155, 138, 34);
/* oklch */ color: oklch(63.0% 0.119 99.5);
Tailwind
colors: {
  custom: {
    50: '#bcab66',
    500: '#9b8a22',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a22;
$custom-light: #bcab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a22",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 51.57,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63048,
    "c": 0.11948,
    "h": 99.5
  },
  "luminance": 0.25261
}

Semantic roles & 50–950 ramp

primary
#9B8A22
secondary
#5967C0
accent
#58E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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