#9A8522#9A8522

#9A8522 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.116 H 96.5°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9A8522
RGBrgb(154, 133, 34)
HSLhsl(50, 64%, 37%)
HSVhsv(50, 78%, 60%)
CMYKcmyk(0%, 13.6%, 77.9%, 39.6%)
CIE-LABlab(55.85, -2.68, 52.54)
CIE-LCHlch(55.85, 52.61, 92.92°)
OKLaboklab(61.85% -0.0131 0.1149)
OKLCHoklch(61.85% 0.116 96.5)
XYZxyz(22.0038, 23.7618, 4.9406)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8522 #22379A
analogous
#9A4922 #9A8522 #739A22
triadic
#9A8522 #229A85 #85229A
tetradic
#9A8522 #229A49 #22379A #9A2273
square
#9A8522 #229A49 #22379A #9A2273
split-complementary
#9A8522 #22739A #49229A
monochromatic
#362E0C #685A17 #9A8522 #CCB02D #DBC55B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8522#FFFFFF#000000##000000
##9A85221.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)
#93820E
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#A77A72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9a8522;
/* rgb */ color: rgb(154, 133, 34);
/* oklch */ color: oklch(61.9% 0.116 96.5);
Tailwind
colors: {
  custom: {
    50: '#bca865',
    500: '#9a8522',
    950: '#000000',
  },
}
SCSS
$custom: #9a8522;
$custom-light: #bca865;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8522",
  "rgb": {
    "r": 154,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 49.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61851,
    "c": 0.11564,
    "h": 96.5
  },
  "luminance": 0.23761
}

Semantic roles & 50–950 ramp

primary
#9A8522
secondary
#586ABF
accent
#5EE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8522

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

Preview Lab → · Contrast checker → · Palette generator →

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