#9B8A26#9B8A26

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

Color values

HEX#9B8A26
RGBrgb(155, 138, 38)
HSLhsl(51, 61%, 38%)
HSVhsv(51, 75%, 61%)
CMYKcmyk(0%, 11%, 75.5%, 39.2%)
CIE-LABlab(57.35, -4.80, 52.52)
CIE-LCHlch(57.35, 52.74, 95.22°)
OKLaboklab(63.07% -0.0188 0.1156)
OKLCHoklch(63.07% 0.117 99.2)
XYZxyz(22.9570, 25.2866, 5.5049)
Luminance0.2529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A26 #26379B
analogous
#9B4F26 #9B8A26 #719B26
triadic
#9B8A26 #269B8A #8A269B
tetradic
#9B8A26 #269B4F #26379B #9B2671
square
#9B8A26 #269B4F #26379B #9B2671
split-complementary
#9B8A26 #26719B #4F269B
monochromatic
#39320E #6A5E1A #9B8A26 #CCB632 #D9C863

Accessibility & contrast

On white

3.47
#9B8A26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#9B8A26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A26
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A26#FFFFFF#000000##000000
##9B8A261.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988614
Deuteranopia (green-blind)
#9C8C2D
Tritanopia (blue-blind)
#A77F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a26;
/* rgb */ color: rgb(155, 138, 38);
/* oklch */ color: oklch(63.1% 0.117 99.2);
Tailwind
colors: {
  custom: {
    50: '#bcab68',
    500: '#9b8a26',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a26;
$custom-light: #bcab68;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a26",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 38
  },
  "hsl": {
    "h": 51.282,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63074,
    "c": 0.11712,
    "h": 99.2
  },
  "luminance": 0.25285
}

Semantic roles & 50–950 ramp

primary
#9B8A26
secondary
#5F6DBE
accent
#5BE444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8A26

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

Preview Lab → · Contrast checker → · Palette generator →

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