#9B8B22#9B8B22

#9B8B22 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.3% C 0.120 H 100.2°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9B8B22
RGBrgb(155, 139, 34)
HSLhsl(52, 64%, 37%)
HSVhsv(52, 78%, 61%)
CMYKcmyk(0%, 10.3%, 78.1%, 39.2%)
CIE-LABlab(57.61, -5.52, 54.20)
CIE-LCHlch(57.61, 54.48, 95.81°)
OKLaboklab(63.27% -0.0212 0.1184)
OKLCHoklch(63.27% 0.12 100.2)
XYZxyz(23.0401, 25.5504, 5.2312)
Luminance0.2555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8B22 #22329B
analogous
#9B4F22 #9B8B22 #6F9B22
triadic
#9B8B22 #229B8B #8B229B
tetradic
#9B8B22 #229B4F #22329B #9B226F
square
#9B8B22 #229B4F #22329B #9B226F
split-complementary
#9B8B22 #226F9B #4F229B
monochromatic
#37310C #695E17 #9B8B22 #CDB82D #DBCA5C

Accessibility & contrast

On white

3.44
#9B8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9B8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8B22
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8B22#FFFFFF#000000##000000
##9B8B221.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870A
Deuteranopia (green-blind)
#9D8D2A
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8b22;
/* rgb */ color: rgb(155, 139, 34);
/* oklch */ color: oklch(63.3% 0.120 100.2);
Tailwind
colors: {
  custom: {
    50: '#bcac66',
    500: '#9b8b22',
    950: '#000000',
  },
}
SCSS
$custom: #9b8b22;
$custom-light: #bcac66;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8b22",
  "rgb": {
    "r": 155,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 52.066,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63268,
    "c": 0.12027,
    "h": 100.2
  },
  "luminance": 0.25549
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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