#9B8922#9B8922

#9B8922 is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.8% C 0.119 H 98.8°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#9B8922
RGBrgb(155, 137, 34)
HSLhsl(51, 64%, 37%)
HSVhsv(51, 78%, 61%)
CMYKcmyk(0%, 11.6%, 78.1%, 39.2%)
CIE-LABlab(57.05, -4.42, 53.69)
CIE-LCHlch(57.05, 53.87, 94.71°)
OKLaboklab(62.83% -0.0181 0.1173)
OKLCHoklch(62.83% 0.119 98.8)
XYZxyz(22.7531, 24.9765, 5.1355)
Luminance0.2497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8922 #22349B
analogous
#9B4C22 #9B8922 #719B22
triadic
#9B8922 #229B89 #89229B
tetradic
#9B8922 #229B4C #22349B #9B2271
square
#9B8922 #229B4C #22349B #9B2271
split-complementary
#9B8922 #22719B #4C229B
monochromatic
#37300C #695D17 #9B8922 #CDB52D #DBC85C

Accessibility & contrast

On white

3.50
#9B8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#9B8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8922
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8922#FFFFFF#000000##000000
##9B89221.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850C
Deuteranopia (green-blind)
#9C8C29
Tritanopia (blue-blind)
#A87E75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9b8922;
/* rgb */ color: rgb(155, 137, 34);
/* oklch */ color: oklch(62.8% 0.119 98.8);
Tailwind
colors: {
  custom: {
    50: '#bcab66',
    500: '#9b8922',
    950: '#000000',
  },
}
SCSS
$custom: #9b8922;
$custom-light: #bcab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8922",
  "rgb": {
    "r": 155,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 51.074,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62828,
    "c": 0.11869,
    "h": 98.8
  },
  "luminance": 0.24975
}

Semantic roles & 50–950 ramp

primary
#9B8922
secondary
#5968C0
accent
#5AE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8922

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

Preview Lab → · Contrast checker → · Palette generator →

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