#9B8E2A#9B8E2A

#9B8E2A is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.0% C 0.118 H 101.7°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9B8E2A
RGBrgb(155, 142, 42)
HSLhsl(53, 57%, 39%)
HSVhsv(53, 73%, 61%)
CMYKcmyk(0%, 8.4%, 72.9%, 39.2%)
CIE-LABlab(58.49, -6.78, 52.08)
CIE-LCHlch(58.49, 52.52, 97.42°)
OKLaboklab(63.99% -0.0239 0.1155)
OKLCHoklch(63.99% 0.118 101.7)
XYZxyz(23.6095, 26.4828, 6.0581)
Luminance0.2648 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8E2A #2A379B
analogous
#9B552A #9B8E2A #6F9B2A
triadic
#9B8E2A #2A9B8E #8E2A9B
tetradic
#9B8E2A #2A9B55 #2A379B #9B2A6F
square
#9B8E2A #2A9B55 #2A379B #9B2A6F
split-complementary
#9B8E2A #2A6F9B #552A9B
monochromatic
#3B3610 #6B621D #9B8E2A #C9B939 #D6CA69

Accessibility & contrast

On white

3.34
#9B8E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9B8E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8E2A
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8E2A#FFFFFF#000000##000000
##9B8E2A1.003.346.306.30
#FFFFFF3.341.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8A1A
Deuteranopia (green-blind)
#9F8F31
Tritanopia (blue-blind)
#A7847A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9b8e2a;
/* rgb */ color: rgb(155, 142, 42);
/* oklch */ color: oklch(64.0% 0.118 101.7);
Tailwind
colors: {
  custom: {
    50: '#bcae6b',
    500: '#9b8e2a',
    950: '#000000',
  },
}
SCSS
$custom: #9b8e2a;
$custom-light: #bcae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8e2a",
  "rgb": {
    "r": 155,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 53.097,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63986,
    "c": 0.11793,
    "h": 101.7
  },
  "luminance": 0.26482
}

Semantic roles & 50–950 ramp

primary
#9B8E2A
secondary
#646EBD
accent
#59E147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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