#9B8D22#9B8D22

#9B8D22 is a light, vivid yellow. Relative luminance 0.261; OKLCH L 63.7% C 0.122 H 101.5°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9B8D22
RGBrgb(155, 141, 34)
HSLhsl(53, 64%, 37%)
HSVhsv(53, 78%, 61%)
CMYKcmyk(0%, 9%, 78.1%, 39.2%)
CIE-LABlab(58.16, -6.61, 54.71)
CIE-LCHlch(58.16, 55.11, 96.88°)
OKLaboklab(63.71% -0.0243 0.1195)
OKLCHoklch(63.71% 0.122 101.5)
XYZxyz(23.3323, 26.1349, 5.3286)
Luminance0.2613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8D22 #22309B
analogous
#9B5122 #9B8D22 #6D9B22
triadic
#9B8D22 #229B8D #8D229B
tetradic
#9B8D22 #229B51 #22309B #9B226D
square
#9B8D22 #229B51 #22309B #9B226D
split-complementary
#9B8D22 #226D9B #51229B
monochromatic
#37320C #695F17 #9B8D22 #CDBB2D #DBCD5C

Accessibility & contrast

On white

3.37
#9B8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#9B8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8D22
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8D22#FFFFFF#000000##000000
##9B8D221.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8909
Deuteranopia (green-blind)
#9F8E2A
Tritanopia (blue-blind)
#A78279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9b8d22;
/* rgb */ color: rgb(155, 141, 34);
/* oklch */ color: oklch(63.7% 0.122 101.5);
Tailwind
colors: {
  custom: {
    50: '#bcae66',
    500: '#9b8d22',
    950: '#000000',
  },
}
SCSS
$custom: #9b8d22;
$custom-light: #bcae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8d22",
  "rgb": {
    "r": 155,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 53.058,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63711,
    "c": 0.12193,
    "h": 101.5
  },
  "luminance": 0.26134
}

Semantic roles & 50–950 ramp

primary
#9B8D22
secondary
#5965C0
accent
#54E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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