#9B8A2E#9B8A2E

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

Color values

HEX#9B8A2E
RGBrgb(155, 138, 46)
HSLhsl(51, 54%, 39%)
HSVhsv(51, 70%, 61%)
CMYKcmyk(0%, 11%, 70.3%, 39.2%)
CIE-LABlab(57.41, -4.39, 49.38)
CIE-LCHlch(57.41, 49.57, 95.08°)
OKLaboklab(63.14% -0.0167 0.1105)
OKLCHoklch(63.14% 0.112 98.6)
XYZxyz(23.1003, 25.3439, 6.2593)
Luminance0.2534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A2E #2E3F9B
analogous
#9B542E #9B8A2E #769B2E
triadic
#9B8A2E #2E9B8A #8A2E9B
tetradic
#9B8A2E #2E9B54 #2E3F9B #9B2E76
square
#9B8A2E #2E9B54 #2E3F9B #9B2E76
split-complementary
#9B8A2E #2E769B #542E9B
monochromatic
#3D3612 #6C6020 #9B8A2E #C6B140 #D4C56F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8A2E#FFFFFF#000000##000000
##9B8A2E1.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)
#988621
Deuteranopia (green-blind)
#9C8C33
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a2e;
/* rgb */ color: rgb(155, 138, 46);
/* oklch */ color: oklch(63.1% 0.112 98.6);
Tailwind
colors: {
  custom: {
    50: '#bcab6c',
    500: '#9b8a2e',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a2e;
$custom-light: #bcab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a2e",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 50.642,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.63136,
    "c": 0.11176,
    "h": 98.6
  },
  "luminance": 0.25343
}

Semantic roles & 50–950 ramp

primary
#9B8A2E
secondary
#6976BC
accent
#61DE4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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