#9B8726#9B8726

#9B8726 is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.4% C 0.115 H 97.0°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9B8726
RGBrgb(155, 135, 38)
HSLhsl(50, 61%, 38%)
HSVhsv(50, 75%, 61%)
CMYKcmyk(0%, 12.9%, 75.5%, 39.2%)
CIE-LABlab(56.52, -3.15, 51.73)
CIE-LCHlch(56.52, 51.82, 93.48°)
OKLaboklab(62.42% -0.0141 0.1139)
OKLCHoklch(62.42% 0.115 97)
XYZxyz(22.5325, 24.4376, 5.3634)
Luminance0.2444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8726 #263A9B
analogous
#9B4D26 #9B8726 #749B26
triadic
#9B8726 #269B87 #87269B
tetradic
#9B8726 #269B4D #263A9B #9B2674
square
#9B8726 #269B4D #263A9B #9B2674
split-complementary
#9B8726 #26749B #4D269B
monochromatic
#39310E #6A5C1A #9B8726 #CCB232 #D9C563

Accessibility & contrast

On white

3.57
#9B8726 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#9B8726 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8726
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8726#FFFFFF#000000##000000
##9B87261.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958415
Deuteranopia (green-blind)
#9A8A2C
Tritanopia (blue-blind)
#A87C74
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9b8726;
/* rgb */ color: rgb(155, 135, 38);
/* oklch */ color: oklch(62.4% 0.115 97.0);
Tailwind
colors: {
  custom: {
    50: '#bca968',
    500: '#9b8726',
    950: '#000000',
  },
}
SCSS
$custom: #9b8726;
$custom-light: #bca968;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8726",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 49.744,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.62416,
    "c": 0.1148,
    "h": 97
  },
  "luminance": 0.24436
}

Semantic roles & 50–950 ramp

primary
#9B8726
secondary
#5F6FBE
accent
#5FE444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9B8726

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

Preview Lab → · Contrast checker → · Palette generator →

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