#9B8A25#9B8A25

#9B8A25 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.118 H 99.3°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9B8A25
RGBrgb(155, 138, 37)
HSLhsl(51, 61%, 38%)
HSVhsv(51, 76%, 61%)
CMYKcmyk(0%, 11%, 76.1%, 39.2%)
CIE-LABlab(57.35, -4.84, 52.88)
CIE-LCHlch(57.35, 53.11, 95.23°)
OKLaboklab(63.07% -0.019 0.1162)
OKLCHoklch(63.07% 0.118 99.3)
XYZxyz(22.9411, 25.2802, 5.4211)
Luminance0.2528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A25 #25369B
analogous
#9B4F25 #9B8A25 #719B25
triadic
#9B8A25 #259B8A #8A259B
tetradic
#9B8A25 #259B4F #25369B #9B2571
square
#9B8A25 #259B4F #25369B #9B2571
split-complementary
#9B8A25 #25719B #4F259B
monochromatic
#38320D #6A5E19 #9B8A25 #CCB631 #D9C861

Accessibility & contrast

On white

3.47
#9B8A25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#9B8A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A25
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A25#FFFFFF#000000##000000
##9B8A251.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988612
Deuteranopia (green-blind)
#9D8C2C
Tritanopia (blue-blind)
#A77F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a25;
/* rgb */ color: rgb(155, 138, 37);
/* oklch */ color: oklch(63.1% 0.118 99.3);
Tailwind
colors: {
  custom: {
    50: '#bcab67',
    500: '#9b8a25',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a25;
$custom-light: #bcab67;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a25",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 51.356,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63067,
    "c": 0.11773,
    "h": 99.3
  },
  "luminance": 0.25279
}

Semantic roles & 50–950 ramp

primary
#9B8A25
secondary
#5D6BBF
accent
#5AE543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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