#9B8A20#9B8A20

#9B8A20 is a light, vivid yellow. Relative luminance 0.253; OKLCH L 63.0% C 0.121 H 99.6°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9B8A20
RGBrgb(155, 138, 32)
HSLhsl(52, 66%, 37%)
HSVhsv(52, 79%, 61%)
CMYKcmyk(0%, 11%, 79.4%, 39.2%)
CIE-LABlab(57.32, -5.05, 54.62)
CIE-LCHlch(57.32, 54.86, 95.28°)
OKLaboklab(63.04% -0.0201 0.1189)
OKLCHoklch(63.04% 0.121 99.6)
XYZxyz(22.8679, 25.2509, 5.0356)
Luminance0.2525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A20 #20319B
analogous
#9B4D20 #9B8A20 #6F9B20
triadic
#9B8A20 #209B8A #8A209B
tetradic
#9B8A20 #209B4D #20319B #9B206F
square
#9B8A20 #209B4D #20319B #9B206F
split-complementary
#9B8A20 #206F9B #4D209B
monochromatic
#36300B #685D16 #9B8A20 #CEB72A #DDCA59

Accessibility & contrast

On white

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

On black

6.05
#9B8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A20
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A20#FFFFFF#000000##000000
##9B8A201.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988606
Deuteranopia (green-blind)
#9D8C28
Tritanopia (blue-blind)
#A87F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a20;
/* rgb */ color: rgb(155, 138, 32);
/* oklch */ color: oklch(63.0% 0.121 99.6);
Tailwind
colors: {
  custom: {
    50: '#bcab65',
    500: '#9b8a20',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a20;
$custom-light: #bcab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a20",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 51.707,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63036,
    "c": 0.12056,
    "h": 99.6
  },
  "luminance": 0.2525
}

Semantic roles & 50–950 ramp

primary
#9B8A20
secondary
#5665C1
accent
#57E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9B8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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