#9B8A42#9B8A42

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

Color values

HEX#9B8A42
RGBrgb(155, 138, 66)
HSLhsl(49, 40%, 43%)
HSVhsv(49, 57%, 61%)
CMYKcmyk(0%, 11%, 57.4%, 39.2%)
CIE-LABlab(57.60, -3.01, 40.29)
CIE-LCHlch(57.60, 40.40, 94.27°)
OKLaboklab(63.35% -0.0103 0.0941)
OKLCHoklch(63.35% 0.095 96.2)
XYZxyz(23.5903, 25.5399, 8.8403)
Luminance0.2554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A42 #42539B
analogous
#9B5D42 #9B8A42 #7F9B42
triadic
#9B8A42 #429B8A #8A429B
tetradic
#9B8A42 #429B5D #42539B #9B427F
square
#9B8A42 #429B5D #42539B #9B427F
split-complementary
#9B8A42 #427F9B #5D429B
monochromatic
#453E1D #706430 #9B8A42 #BBA95F #CDC08A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8A42#FFFFFF#000000##000000
##9B8A421.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)
#96873B
Deuteranopia (green-blind)
#9B8D45
Tritanopia (blue-blind)
#A6817A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a42;
/* rgb */ color: rgb(155, 138, 66);
/* oklch */ color: oklch(63.3% 0.095 96.2);
Tailwind
colors: {
  custom: {
    50: '#bbab79',
    500: '#9b8a42',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a42;
$custom-light: #bbab79;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a42",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 48.539,
    "s": 40.271,
    "l": 43.333
  },
  "oklch": {
    "l": 0.63346,
    "c": 0.09468,
    "h": 96.2
  },
  "luminance": 0.25539
}

Semantic roles & 50–950 ramp

primary
#9B8A42
secondary
#818BB8
accent
#6FD058
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9B8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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