#9B8020#9B8020

#9B8020 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.9% C 0.114 H 92.2°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9B8020
RGBrgb(155, 128, 32)
HSLhsl(47, 66%, 37%)
HSVhsv(47, 79%, 61%)
CMYKcmyk(0%, 17.4%, 79.4%, 39.2%)
CIE-LABlab(54.57, 0.48, 52.12)
CIE-LCHlch(54.57, 52.12, 89.47°)
OKLaboklab(60.86% -0.0044 0.1135)
OKLCHoklch(60.86% 0.114 92.2)
XYZxyz(21.4987, 22.5125, 4.5792)
Luminance0.2251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8020 #203B9B
analogous
#9B4320 #9B8020 #799B20
triadic
#9B8020 #209B80 #80209B
tetradic
#9B8020 #209B43 #203B9B #9B2079
square
#9B8020 #209B43 #203B9B #9B2079
split-complementary
#9B8020 #20799B #43209B
monochromatic
#362C0B #685616 #9B8020 #CEAA2A #DDC059

Accessibility & contrast

On white

3.82
#9B8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#9B8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8020
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8020#FFFFFF#000000##000000
##9B80201.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0C
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#A8756E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9b8020;
/* rgb */ color: rgb(155, 128, 32);
/* oklch */ color: oklch(60.9% 0.114 92.2);
Tailwind
colors: {
  custom: {
    50: '#bda464',
    500: '#9b8020',
    950: '#000000',
  },
}
SCSS
$custom: #9b8020;
$custom-light: #bda464;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8020",
  "rgb": {
    "r": 155,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 46.829,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60858,
    "c": 0.1136,
    "h": 92.2
  },
  "luminance": 0.22511
}

Semantic roles & 50–950 ramp

primary
#9B8020
secondary
#566EC1
accent
#64E93F
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B8020

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

Preview Lab → · Contrast checker → · Palette generator →

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