#9B8B2C#9B8B2C

#9B8B2C is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.3% C 0.114 H 99.5°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9B8B2C
RGBrgb(155, 139, 44)
HSLhsl(51, 56%, 39%)
HSVhsv(51, 72%, 61%)
CMYKcmyk(0%, 10.3%, 71.6%, 39.2%)
CIE-LABlab(57.67, -5.04, 50.47)
CIE-LCHlch(57.67, 50.72, 95.71°)
OKLaboklab(63.34% -0.0188 0.1124)
OKLCHoklch(63.34% 0.114 99.5)
XYZxyz(23.2059, 25.6167, 6.1046)
Luminance0.2562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8B2C #2C3C9B
analogous
#9B542C #9B8B2C #749B2C
triadic
#9B8B2C #2C9B8B #8B2C9B
tetradic
#9B8B2C #2C9B54 #2C3C9B #9B2C74
square
#9B8B2C #2C9B54 #2C3C9B #9B2C74
split-complementary
#9B8B2C #2C749B #542C9B
monochromatic
#3C3611 #6B601E #9B8B2C #C8B43C #D5C66C

Accessibility & contrast

On white

3.43
#9B8B2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#9B8B2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8B2C
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8B2C#FFFFFF#000000##000000
##9B8B2C1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871E
Deuteranopia (green-blind)
#9D8D32
Tritanopia (blue-blind)
#A78178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8b2c;
/* rgb */ color: rgb(155, 139, 44);
/* oklch */ color: oklch(63.3% 0.114 99.5);
Tailwind
colors: {
  custom: {
    50: '#bcac6b',
    500: '#9b8b2c',
    950: '#000000',
  },
}
SCSS
$custom: #9b8b2c;
$custom-light: #bcac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8b2c",
  "rgb": {
    "r": 155,
    "g": 139,
    "b": 44
  },
  "hsl": {
    "h": 51.351,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.63339,
    "c": 0.114,
    "h": 99.5
  },
  "luminance": 0.25616
}

Semantic roles & 50–950 ramp

primary
#9B8B2C
secondary
#6773BC
accent
#5EDF49
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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