#9B8A2F#9B8A2F

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

Color values

HEX#9B8A2F
RGBrgb(155, 138, 47)
HSLhsl(51, 53%, 40%)
HSVhsv(51, 70%, 61%)
CMYKcmyk(0%, 11%, 69.7%, 39.2%)
CIE-LABlab(57.42, -4.33, 48.96)
CIE-LCHlch(57.42, 49.15, 95.06°)
OKLaboklab(63.14% -0.0164 0.1098)
OKLCHoklch(63.14% 0.111 98.5)
XYZxyz(23.1202, 25.3519, 6.3644)
Luminance0.2535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A2F #2F409B
analogous
#9B542F #9B8A2F #769B2F
triadic
#9B8A2F #2F9B8A #8A2F9B
tetradic
#9B8A2F #2F9B54 #2F409B #9B2F76
square
#9B8A2F #2F9B54 #2F409B #9B2F76
split-complementary
#9B8A2F #2F769B #542F9B
monochromatic
#3D3613 #6C6021 #9B8A2F #C6B142 #D4C471

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8A2F#FFFFFF#000000##000000
##9B8A2F1.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)
#978623
Deuteranopia (green-blind)
#9C8C34
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a2f;
/* rgb */ color: rgb(155, 138, 47);
/* oklch */ color: oklch(63.1% 0.111 98.5);
Tailwind
colors: {
  custom: {
    50: '#bcab6d',
    500: '#9b8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a2f;
$custom-light: #bcab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a2f",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 50.556,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63144,
    "c": 0.11102,
    "h": 98.5
  },
  "luminance": 0.25351
}

Semantic roles & 50–950 ramp

primary
#9B8A2F
secondary
#6A77BB
accent
#62DD4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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