#9B8938#9B8938

#9B8938 is a light, moderate yellow. Relative luminance 0.251; OKLCH L 63.0% C 0.103 H 96.8°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9B8938
RGBrgb(155, 137, 56)
HSLhsl(49, 47%, 41%)
HSVhsv(49, 64%, 61%)
CMYKcmyk(0%, 11.6%, 63.9%, 39.2%)
CIE-LABlab(57.22, -3.21, 44.72)
CIE-LCHlch(57.22, 44.83, 94.11°)
OKLaboklab(63.01% -0.0121 0.1023)
OKLCHoklch(63.01% 0.103 96.8)
XYZxyz(23.1780, 25.1465, 7.3735)
Luminance0.2515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8938 #384A9B
analogous
#9B5838 #9B8938 #7C9B38
triadic
#9B8938 #389B89 #89389B
tetradic
#9B8938 #389B58 #384A9B #9B387C
square
#9B8938 #389B58 #384A9B #9B387C
split-complementary
#9B8938 #387C9B #58389B
monochromatic
#413A18 #6E6128 #9B8938 #C0AC50 #D0C17D

Accessibility & contrast

On white

3.48
#9B8938 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9B8938 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8938
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8938#FFFFFF#000000##000000
##9B89381.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#96862F
Deuteranopia (green-blind)
#9B8C3C
Tritanopia (blue-blind)
#A77F78
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9b8938;
/* rgb */ color: rgb(155, 137, 56);
/* oklch */ color: oklch(63.0% 0.103 96.8);
Tailwind
colors: {
  custom: {
    50: '#bbab72',
    500: '#9b8938',
    950: '#000000',
  },
}
SCSS
$custom: #9b8938;
$custom-light: #bbab72;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8938",
  "rgb": {
    "r": 155,
    "g": 137,
    "b": 56
  },
  "hsl": {
    "h": 49.091,
    "s": 46.919,
    "l": 41.373
  },
  "oklch": {
    "l": 0.63012,
    "c": 0.103,
    "h": 96.8
  },
  "luminance": 0.25145
}

Semantic roles & 50–950 ramp

primary
#9B8938
secondary
#7582B9
accent
#69D751
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9B8938

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

Preview Lab → · Contrast checker → · Palette generator →

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