#9B8A33#9B8A33

#9B8A33 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.108 H 98.1°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9B8A33
RGBrgb(155, 138, 51)
HSLhsl(50, 50%, 40%)
HSVhsv(50, 67%, 61%)
CMYKcmyk(0%, 11%, 67.1%, 39.2%)
CIE-LABlab(57.45, -4.09, 47.25)
CIE-LCHlch(57.45, 47.43, 94.95°)
OKLaboklab(63.18% -0.0153 0.1069)
OKLCHoklch(63.18% 0.108 98.1)
XYZxyz(23.2046, 25.3856, 6.8090)
Luminance0.2539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A33 #33449B
analogous
#9B5633 #9B8A33 #789B33
triadic
#9B8A33 #339B8A #8A339B
tetradic
#9B8A33 #339B56 #33449B #9B3378
square
#9B8A33 #339B56 #33449B #9B3378
split-complementary
#9B8A33 #33789B #56339B
monochromatic
#3F3815 #6D6124 #9B8A33 #C3AF48 #D2C376

Accessibility & contrast

On white

3.46
#9B8A33 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9B8A33 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A33
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A33#FFFFFF#000000##000000
##9B8A331.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978728
Deuteranopia (green-blind)
#9C8C38
Tritanopia (blue-blind)
#A78078
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a33;
/* rgb */ color: rgb(155, 138, 51);
/* oklch */ color: oklch(63.2% 0.108 98.1);
Tailwind
colors: {
  custom: {
    50: '#bbab6f',
    500: '#9b8a33',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a33;
$custom-light: #bbab6f;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a33",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 51
  },
  "hsl": {
    "h": 50.192,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.63181,
    "c": 0.10796,
    "h": 98.1
  },
  "luminance": 0.25385
}

Semantic roles & 50–950 ramp

primary
#9B8A33
secondary
#6F7CBA
accent
#65DA4E
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121008
muted
#817F7B

Preview Lab

Preview with #9B8A33

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

Preview Lab → · Contrast checker → · Palette generator →

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