#9B8A38#9B8A38

#9B8A38 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.104 H 97.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9B8A38
RGBrgb(155, 138, 56)
HSLhsl(50, 47%, 41%)
HSVhsv(50, 64%, 61%)
CMYKcmyk(0%, 11%, 63.9%, 39.2%)
CIE-LABlab(57.49, -3.76, 45.02)
CIE-LCHlch(57.49, 45.18, 94.78°)
OKLaboklab(63.23% -0.0137 0.1029)
OKLCHoklch(63.23% 0.104 97.6)
XYZxyz(23.3209, 25.4321, 7.4211)
Luminance0.2543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A38 #38499B
analogous
#9B5938 #9B8A38 #7B9B38
triadic
#9B8A38 #389B8A #8A389B
tetradic
#9B8A38 #389B59 #38499B #9B387B
square
#9B8A38 #389B59 #38499B #9B387B
split-complementary
#9B8A38 #387B9B #59389B
monochromatic
#413A18 #6E6228 #9B8A38 #C0AD50 #D0C27D

Accessibility & contrast

On white

3.45
#9B8A38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9B8A38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A38
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A38#FFFFFF#000000##000000
##9B8A381.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#97872F
Deuteranopia (green-blind)
#9C8D3C
Tritanopia (blue-blind)
#A78078
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a38;
/* rgb */ color: rgb(155, 138, 56);
/* oklch */ color: oklch(63.2% 0.104 97.6);
Tailwind
colors: {
  custom: {
    50: '#bbab72',
    500: '#9b8a38',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a38;
$custom-light: #bbab72;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a38",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 56
  },
  "hsl": {
    "h": 49.697,
    "s": 46.919,
    "l": 41.373
  },
  "oklch": {
    "l": 0.63231,
    "c": 0.10383,
    "h": 97.6
  },
  "luminance": 0.25431
}

Semantic roles & 50–950 ramp

primary
#9B8A38
secondary
#7581B9
accent
#68D751
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9B8A38

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

Preview Lab → · Contrast checker → · Palette generator →

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