#9B8A2C#9B8A2C

#9B8A2C is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.113 H 98.8°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9B8A2C
RGBrgb(155, 138, 44)
HSLhsl(51, 56%, 39%)
HSVhsv(51, 72%, 61%)
CMYKcmyk(0%, 11%, 71.6%, 39.2%)
CIE-LABlab(57.39, -4.50, 50.20)
CIE-LCHlch(57.39, 50.40, 95.12°)
OKLaboklab(63.12% -0.0173 0.1119)
OKLCHoklch(63.12% 0.113 98.8)
XYZxyz(23.0618, 25.3285, 6.0565)
Luminance0.2533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A2C #2C3D9B
analogous
#9B532C #9B8A2C #759B2C
triadic
#9B8A2C #2C9B8A #8A2C9B
tetradic
#9B8A2C #2C9B53 #2C3D9B #9B2C75
square
#9B8A2C #2C9B53 #2C3D9B #9B2C75
split-complementary
#9B8A2C #2C759B #532C9B
monochromatic
#3C3511 #6B601E #9B8A2C #C8B23C #D5C56C

Accessibility & contrast

On white

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

On black

6.07
#9B8A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A2C
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A2C#FFFFFF#000000##000000
##9B8A2C1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#98861E
Deuteranopia (green-blind)
#9C8C32
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a2c;
/* rgb */ color: rgb(155, 138, 44);
/* oklch */ color: oklch(63.1% 0.113 98.8);
Tailwind
colors: {
  custom: {
    50: '#bcab6b',
    500: '#9b8a2c',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a2c;
$custom-light: #bcab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a2c",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 50.811,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.63119,
    "c": 0.11318,
    "h": 98.8
  },
  "luminance": 0.25327
}

Semantic roles & 50–950 ramp

primary
#9B8A2C
secondary
#6774BC
accent
#60DF49
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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