#9A8520#9A8520

#9A8520 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.8% C 0.117 H 96.7°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9A8520
RGBrgb(154, 133, 32)
HSLhsl(50, 66%, 36%)
HSVhsv(50, 79%, 60%)
CMYKcmyk(0%, 13.6%, 79.2%, 39.6%)
CIE-LABlab(55.84, -2.76, 53.24)
CIE-LCHlch(55.84, 53.31, 92.97°)
OKLaboklab(61.84% -0.0135 0.116)
OKLCHoklch(61.84% 0.117 96.7)
XYZxyz(21.9758, 23.7506, 4.7930)
Luminance0.2375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8520 #20359A
analogous
#9A4820 #9A8520 #729A20
triadic
#9A8520 #209A85 #85209A
tetradic
#9A8520 #209A48 #20359A #9A2072
square
#9A8520 #209A48 #20359A #9A2072
split-complementary
#9A8520 #20729A #48209A
monochromatic
#352D0B #675915 #9A8520 #CDB12B #DCC658

Accessibility & contrast

On white

3.65
#9A8520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#9A8520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8520
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8520#FFFFFF#000000##000000
##9A85201.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938209
Deuteranopia (green-blind)
#998927
Tritanopia (blue-blind)
#A77A72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9a8520;
/* rgb */ color: rgb(154, 133, 32);
/* oklch */ color: oklch(61.8% 0.117 96.7);
Tailwind
colors: {
  custom: {
    50: '#bca864',
    500: '#9a8520',
    950: '#000000',
  },
}
SCSS
$custom: #9a8520;
$custom-light: #bca864;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8520",
  "rgb": {
    "r": 154,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 49.672,
    "s": 65.591,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61839,
    "c": 0.11676,
    "h": 96.7
  },
  "luminance": 0.23749
}

Semantic roles & 50–950 ramp

primary
#9A8520
secondary
#5668C0
accent
#5CE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8520

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

Preview Lab → · Contrast checker → · Palette generator →

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