#9B8A40#9B8A40

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

Color values

HEX#9B8A40
RGBrgb(155, 138, 64)
HSLhsl(49, 42%, 43%)
HSVhsv(49, 59%, 61%)
CMYKcmyk(0%, 11%, 58.7%, 39.2%)
CIE-LABlab(57.58, -3.17, 41.26)
CIE-LCHlch(57.58, 41.38, 94.40°)
OKLaboklab(63.32% -0.011 0.096)
OKLCHoklch(63.32% 0.097 96.5)
XYZxyz(23.5324, 25.5167, 8.5352)
Luminance0.2552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A40 #40519B
analogous
#9B5C40 #9B8A40 #7E9B40
triadic
#9B8A40 #409B8A #8A409B
tetradic
#9B8A40 #409B5C #40519B #9B407E
square
#9B8A40 #409B5C #40519B #9B407E
split-complementary
#9B8A40 #407E9B #5C409B
monochromatic
#443D1C #70632E #9B8A40 #BCAA5C #CEC188

Accessibility & contrast

On white

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

On black

6.10
#9B8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A40
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A40#FFFFFF#000000##000000
##9B8A401.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968739
Deuteranopia (green-blind)
#9B8D43
Tritanopia (blue-blind)
#A68179
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a40;
/* rgb */ color: rgb(155, 138, 64);
/* oklch */ color: oklch(63.3% 0.097 96.5);
Tailwind
colors: {
  custom: {
    50: '#bbab77',
    500: '#9b8a40',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a40;
$custom-light: #bbab77;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a40",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 48.791,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.63321,
    "c": 0.09661,
    "h": 96.5
  },
  "luminance": 0.25516
}

Semantic roles & 50–950 ramp

primary
#9B8A40
secondary
#7E89B8
accent
#6DD156
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9B8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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