#9B8B2F#9B8B2F

#9B8B2F is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.112 H 99.3°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9B8B2F
RGBrgb(155, 139, 47)
HSLhsl(51, 53%, 40%)
HSVhsv(51, 70%, 61%)
CMYKcmyk(0%, 10.3%, 69.7%, 39.2%)
CIE-LABlab(57.69, -4.88, 49.25)
CIE-LCHlch(57.69, 49.49, 95.66°)
OKLaboklab(63.36% -0.018 0.1104)
OKLCHoklch(63.36% 0.112 99.3)
XYZxyz(23.2643, 25.6401, 6.4124)
Luminance0.2564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8B2F #2F3F9B
analogous
#9B552F #9B8B2F #759B2F
triadic
#9B8B2F #2F9B8B #8B2F9B
tetradic
#9B8B2F #2F9B55 #2F3F9B #9B2F75
square
#9B8B2F #2F9B55 #2F3F9B #9B2F75
split-complementary
#9B8B2F #2F759B #552F9B
monochromatic
#3D3713 #6C6121 #9B8B2F #C6B242 #D4C571

Accessibility & contrast

On white

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

On black

6.13
#9B8B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8B2F
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8B2F#FFFFFF#000000##000000
##9B8B2F1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#9D8D34
Tritanopia (blue-blind)
#A78178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9b8b2f;
/* rgb */ color: rgb(155, 139, 47);
/* oklch */ color: oklch(63.4% 0.112 99.3);
Tailwind
colors: {
  custom: {
    50: '#bcac6d',
    500: '#9b8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #9b8b2f;
$custom-light: #bcac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8b2f",
  "rgb": {
    "r": 155,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 51.111,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63364,
    "c": 0.11186,
    "h": 99.3
  },
  "luminance": 0.25639
}

Semantic roles & 50–950 ramp

primary
#9B8B2F
secondary
#6A76BB
accent
#61DD4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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