#9B8A2D#9B8A2D

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

Color values

HEX#9B8A2D
RGBrgb(155, 138, 45)
HSLhsl(51, 55%, 39%)
HSVhsv(51, 71%, 61%)
CMYKcmyk(0%, 11%, 71%, 39.2%)
CIE-LABlab(57.40, -4.44, 49.79)
CIE-LCHlch(57.40, 49.99, 95.10°)
OKLaboklab(63.13% -0.017 0.1112)
OKLCHoklch(63.13% 0.112 98.7)
XYZxyz(23.0808, 25.3361, 6.1567)
Luminance0.2534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A2D #2D3E9B
analogous
#9B532D #9B8A2D #759B2D
triadic
#9B8A2D #2D9B8A #8A2D9B
tetradic
#9B8A2D #2D9B53 #2D3E9B #9B2D75
square
#9B8A2D #2D9B53 #2D3E9B #9B2D75
split-complementary
#9B8A2D #2D759B #532D9B
monochromatic
#3C3611 #6C601F #9B8A2D #C7B23E #D5C56E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8A2D#FFFFFF#000000##000000
##9B8A2D1.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)
#988620
Deuteranopia (green-blind)
#9C8C32
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a2d;
/* rgb */ color: rgb(155, 138, 45);
/* oklch */ color: oklch(63.1% 0.112 98.7);
Tailwind
colors: {
  custom: {
    50: '#bcab6c',
    500: '#9b8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a2d;
$custom-light: #bcab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a2d",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 50.727,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63128,
    "c": 0.11247,
    "h": 98.7
  },
  "luminance": 0.25335
}

Semantic roles & 50–950 ramp

primary
#9B8A2D
secondary
#6875BC
accent
#60DE49
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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