#9B8525#9B8525

#9B8525 is a mid, moderate yellow. Relative luminance 0.239; OKLCH L 62.0% C 0.114 H 95.6°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9B8525
RGBrgb(155, 133, 37)
HSLhsl(49, 61%, 38%)
HSVhsv(49, 76%, 61%)
CMYKcmyk(0%, 14.2%, 76.1%, 39.2%)
CIE-LABlab(55.97, -2.09, 51.57)
CIE-LCHlch(55.97, 51.62, 92.32°)
OKLaboklab(61.97% -0.0112 0.1134)
OKLCHoklch(61.97% 0.114 95.6)
XYZxyz(22.2402, 23.8784, 5.1875)
Luminance0.2388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8525 #253B9B
analogous
#9B4A25 #9B8525 #769B25
triadic
#9B8525 #259B85 #85259B
tetradic
#9B8525 #259B4A #253B9B #9B2576
square
#9B8525 #259B4A #253B9B #9B2576
split-complementary
#9B8525 #25769B #4A259B
monochromatic
#38300D #6A5B19 #9B8525 #CCAF31 #D9C361

Accessibility & contrast

On white

3.64
#9B8525 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#9B8525 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8525
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8525#FFFFFF#000000##000000
##9B85251.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b8525;
/* rgb */ color: rgb(155, 133, 37);
/* oklch */ color: oklch(62.0% 0.114 95.6);
Tailwind
colors: {
  custom: {
    50: '#bca867',
    500: '#9b8525',
    950: '#000000',
  },
}
SCSS
$custom: #9b8525;
$custom-light: #bca867;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8525",
  "rgb": {
    "r": 155,
    "g": 133,
    "b": 37
  },
  "hsl": {
    "h": 48.814,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61973,
    "c": 0.11396,
    "h": 95.6
  },
  "luminance": 0.23877
}

Semantic roles & 50–950 ramp

primary
#9B8525
secondary
#5D6FBF
accent
#61E543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9B8525

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

Preview Lab → · Contrast checker → · Palette generator →

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