#9B8B2D#9B8B2D

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

Color values

HEX#9B8B2D
RGBrgb(155, 139, 45)
HSLhsl(51, 55%, 39%)
HSVhsv(51, 71%, 61%)
CMYKcmyk(0%, 10.3%, 71%, 39.2%)
CIE-LABlab(57.68, -4.99, 50.07)
CIE-LCHlch(57.68, 50.32, 95.69°)
OKLaboklab(63.35% -0.0185 0.1118)
OKLCHoklch(63.35% 0.113 99.4)
XYZxyz(23.2249, 25.6244, 6.2048)
Luminance0.2562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8B2D #2D3D9B
analogous
#9B542D #9B8B2D #749B2D
triadic
#9B8B2D #2D9B8B #8B2D9B
tetradic
#9B8B2D #2D9B54 #2D3D9B #9B2D74
square
#9B8B2D #2D9B54 #2D3D9B #9B2D74
split-complementary
#9B8B2D #2D749B #542D9B
monochromatic
#3C3611 #6C601F #9B8B2D #C7B33E #D5C66E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8B2D#FFFFFF#000000##000000
##9B8B2D1.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)
#99871F
Deuteranopia (green-blind)
#9D8D33
Tritanopia (blue-blind)
#A78178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9b8b2d;
/* rgb */ color: rgb(155, 139, 45);
/* oklch */ color: oklch(63.3% 0.113 99.4);
Tailwind
colors: {
  custom: {
    50: '#bcac6c',
    500: '#9b8b2d',
    950: '#000000',
  },
}
SCSS
$custom: #9b8b2d;
$custom-light: #bcac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8b2d",
  "rgb": {
    "r": 155,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 51.273,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63347,
    "c": 0.1133,
    "h": 99.4
  },
  "luminance": 0.25623
}

Semantic roles & 50–950 ramp

primary
#9B8B2D
secondary
#6874BC
accent
#5FDE49
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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