#9A8525#9A8525

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

Color values

HEX#9A8525
RGBrgb(154, 133, 37)
HSLhsl(49, 61%, 37%)
HSVhsv(49, 76%, 60%)
CMYKcmyk(0%, 13.6%, 76%, 39.6%)
CIE-LABlab(55.87, -2.55, 51.45)
CIE-LCHlch(55.87, 51.51, 92.83°)
OKLaboklab(61.87% -0.0124 0.1132)
OKLCHoklch(61.87% 0.114 96.3)
XYZxyz(22.0490, 23.7798, 5.1785)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8525 #253A9A
analogous
#9A4B25 #9A8525 #749A25
triadic
#9A8525 #259A85 #85259A
tetradic
#9A8525 #259A4B #253A9A #9A2574
square
#9A8525 #259A4B #253A9A #9A2574
split-complementary
#9A8525 #25749A #4B259A
monochromatic
#37300D #695A19 #9A8525 #CBB031 #D9C360

Accessibility & contrast

On white

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

On black

5.76
#9A8525 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8525
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8525#FFFFFF#000000##000000
##9A85251.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938214
Deuteranopia (green-blind)
#99892B
Tritanopia (blue-blind)
#A77A72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9a8525;
/* rgb */ color: rgb(154, 133, 37);
/* oklch */ color: oklch(61.9% 0.114 96.3);
Tailwind
colors: {
  custom: {
    50: '#bba867',
    500: '#9a8525',
    950: '#000000',
  },
}
SCSS
$custom: #9a8525;
$custom-light: #bba867;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8525",
  "rgb": {
    "r": 154,
    "g": 133,
    "b": 37
  },
  "hsl": {
    "h": 49.231,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61871,
    "c": 0.11386,
    "h": 96.3
  },
  "luminance": 0.23779
}

Semantic roles & 50–950 ramp

primary
#9A8525
secondary
#5D6EBE
accent
#60E443
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8525

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

Preview Lab → · Contrast checker → · Palette generator →

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