#9B8F2A#9B8F2A

#9B8F2A is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.2% C 0.119 H 102.4°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9B8F2A
RGBrgb(155, 143, 42)
HSLhsl(54, 57%, 39%)
HSVhsv(54, 73%, 61%)
CMYKcmyk(0%, 7.7%, 72.9%, 39.2%)
CIE-LABlab(58.77, -7.32, 52.36)
CIE-LCHlch(58.77, 52.87, 97.96°)
OKLaboklab(64.21% -0.0255 0.1161)
OKLCHoklch(64.21% 0.119 102.4)
XYZxyz(23.7590, 26.7817, 6.1079)
Luminance0.2678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8F2A #2A369B
analogous
#9B562A #9B8F2A #6E9B2A
triadic
#9B8F2A #2A9B8F #8F2A9B
tetradic
#9B8F2A #2A9B56 #2A369B #9B2A6E
square
#9B8F2A #2A9B56 #2A369B #9B2A6E
split-complementary
#9B8F2A #2A6E9B #562A9B
monochromatic
#3B3610 #6B631D #9B8F2A #C9BA39 #D6CB69

Accessibility & contrast

On white

3.30
#9B8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9B8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8F2A
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8F2A#FFFFFF#000000##000000
##9B8F2A1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A19
Deuteranopia (green-blind)
#A09031
Tritanopia (blue-blind)
#A7857B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9b8f2a;
/* rgb */ color: rgb(155, 143, 42);
/* oklch */ color: oklch(64.2% 0.119 102.4);
Tailwind
colors: {
  custom: {
    50: '#bcaf6b',
    500: '#9b8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #9b8f2a;
$custom-light: #bcaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8f2a",
  "rgb": {
    "r": 155,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 53.628,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64208,
    "c": 0.11882,
    "h": 102.4
  },
  "luminance": 0.26781
}

Semantic roles & 50–950 ramp

primary
#9B8F2A
secondary
#646DBD
accent
#57E147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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