#9B8F22#9B8F22

#9B8F22 is a light, vivid yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.124 H 102.8°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9B8F22
RGBrgb(155, 143, 34)
HSLhsl(54, 64%, 37%)
HSVhsv(54, 78%, 61%)
CMYKcmyk(0%, 7.7%, 78.1%, 39.2%)
CIE-LABlab(58.72, -7.69, 55.23)
CIE-LCHlch(58.72, 55.76, 97.92°)
OKLaboklab(64.16% -0.0273 0.1206)
OKLCHoklch(64.16% 0.124 102.8)
XYZxyz(23.6299, 26.7300, 5.4278)
Luminance0.2673 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8F22 #222E9B
analogous
#9B5322 #9B8F22 #6A9B22
triadic
#9B8F22 #229B8F #8F229B
tetradic
#9B8F22 #229B53 #222E9B #9B226A
square
#9B8F22 #229B53 #222E9B #9B226A
split-complementary
#9B8F22 #226A9B #53229B
monochromatic
#37320C #696117 #9B8F22 #CDBD2D #DBCF5C

Accessibility & contrast

On white

3.31
#9B8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#9B8F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8F22
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8F22#FFFFFF#000000##000000
##9B8F221.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A08
Deuteranopia (green-blind)
#A0902A
Tritanopia (blue-blind)
#A7847A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9b8f22;
/* rgb */ color: rgb(155, 143, 34);
/* oklch */ color: oklch(64.2% 0.124 102.8);
Tailwind
colors: {
  custom: {
    50: '#bcaf67',
    500: '#9b8f22',
    950: '#000000',
  },
}
SCSS
$custom: #9b8f22;
$custom-light: #bcaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8f22",
  "rgb": {
    "r": 155,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 54.05,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.64155,
    "c": 0.12364,
    "h": 102.8
  },
  "luminance": 0.26729
}

Semantic roles & 50–950 ramp

primary
#9B8F22
secondary
#5963C0
accent
#51E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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