#9A8521#9A8521

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

Color values

HEX#9A8521
RGBrgb(154, 133, 33)
HSLhsl(50, 65%, 37%)
HSVhsv(50, 79%, 60%)
CMYKcmyk(0%, 13.6%, 78.6%, 39.6%)
CIE-LABlab(55.84, -2.72, 52.89)
CIE-LCHlch(55.84, 52.96, 92.94°)
OKLaboklab(61.85% -0.0133 0.1154)
OKLCHoklch(61.85% 0.116 96.6)
XYZxyz(21.9896, 23.7561, 4.8657)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8521 #21369A
analogous
#9A4921 #9A8521 #739A21
triadic
#9A8521 #219A85 #85219A
tetradic
#9A8521 #219A49 #21369A #9A2173
square
#9A8521 #219A49 #21369A #9A2173
split-complementary
#9A8521 #21739A #49219A
monochromatic
#352E0B #685916 #9A8521 #CCB12C #DCC55A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8521#FFFFFF#000000##000000
##9A85211.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)
#93820B
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#A77A72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9a8521;
/* rgb */ color: rgb(154, 133, 33);
/* oklch */ color: oklch(61.8% 0.116 96.6);
Tailwind
colors: {
  custom: {
    50: '#bca865',
    500: '#9a8521',
    950: '#000000',
  },
}
SCSS
$custom: #9a8521;
$custom-light: #bca865;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8521",
  "rgb": {
    "r": 154,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 49.587,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61845,
    "c": 0.11621,
    "h": 96.6
  },
  "luminance": 0.23755
}

Semantic roles & 50–950 ramp

primary
#9A8521
secondary
#5769C0
accent
#5DE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8521

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

Preview Lab → · Contrast checker → · Palette generator →

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