#9B8528#9B8528

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

Color values

HEX#9B8528
RGBrgb(155, 133, 40)
HSLhsl(49, 59%, 38%)
HSVhsv(49, 74%, 61%)
CMYKcmyk(0%, 14.2%, 74.2%, 39.2%)
CIE-LABlab(55.99, -1.95, 50.42)
CIE-LCHlch(55.99, 50.46, 92.21°)
OKLaboklab(62% -0.0104 0.1116)
OKLCHoklch(62% 0.112 95.4)
XYZxyz(22.2893, 23.8980, 5.4458)
Luminance0.2390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8528 #283E9B
analogous
#9B4C28 #9B8528 #779B28
triadic
#9B8528 #289B85 #85289B
tetradic
#9B8528 #289B4C #283E9B #9B2877
square
#9B8528 #289B4C #283E9B #9B2877
split-complementary
#9B8528 #28779B #4C289B
monochromatic
#3A320F #6A5B1B #9B8528 #CBAE35 #D7C266

Accessibility & contrast

On white

3.63
#9B8528 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8528#FFFFFF#000000##000000
##9B85281.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938219
Deuteranopia (green-blind)
#99892D
Tritanopia (blue-blind)
#A87A73
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9b8528;
/* rgb */ color: rgb(155, 133, 40);
/* oklch */ color: oklch(62.0% 0.112 95.4);
Tailwind
colors: {
  custom: {
    50: '#bca868',
    500: '#9b8528',
    950: '#000000',
  },
}
SCSS
$custom: #9b8528;
$custom-light: #bca868;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8528",
  "rgb": {
    "r": 155,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 48.522,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.61995,
    "c": 0.11206,
    "h": 95.4
  },
  "luminance": 0.23897
}

Semantic roles & 50–950 ramp

primary
#9B8528
secondary
#6173BD
accent
#64E246
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9B8528

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

Preview Lab → · Contrast checker → · Palette generator →

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