#9B9837#9B9837

#9B9837 is a light, moderate yellow. Relative luminance 0.297; OKLCH L 66.3% C 0.118 H 107.5°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9B9837
RGBrgb(155, 152, 55)
HSLhsl(58, 48%, 41%)
HSVhsv(58, 65%, 61%)
CMYKcmyk(0%, 1.9%, 64.5%, 39.2%)
CIE-LABlab(61.40, -11.39, 49.65)
CIE-LCHlch(61.40, 50.94, 102.92°)
OKLaboklab(66.33% -0.0355 0.1126)
OKLCHoklch(66.33% 0.118 107.5)
XYZxyz(25.4363, 29.7017, 8.0068)
Luminance0.2970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9837 #373A9B
analogous
#9B6637 #9B9837 #6C9B37
triadic
#9B9837 #379B98 #98379B
tetradic
#9B9837 #379B66 #373A9B #9B376C
square
#9B9837 #379B66 #373A9B #9B376C
split-complementary
#9B9837 #376C9B #66379B
monochromatic
#413F17 #6E6C27 #9B9837 #C0BD4F #D0CE7C

Accessibility & contrast

On white

3.03
#9B9837 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#9B9837 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9837
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9837#FFFFFF#000000##000000
##9B98371.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4922B
Deuteranopia (green-blind)
#A6963D
Tritanopia (blue-blind)
#A68E84
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9b9837;
/* rgb */ color: rgb(155, 152, 55);
/* oklch */ color: oklch(66.3% 0.118 107.5);
Tailwind
colors: {
  custom: {
    50: '#bbb673',
    500: '#9b9837',
    950: '#000000',
  },
}
SCSS
$custom: #9b9837;
$custom-light: #bbb673;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9837",
  "rgb": {
    "r": 155,
    "g": 152,
    "b": 55
  },
  "hsl": {
    "h": 58.2,
    "s": 47.619,
    "l": 41.176
  },
  "oklch": {
    "l": 0.66328,
    "c": 0.11807,
    "h": 107.5
  },
  "luminance": 0.29701
}

Semantic roles & 50–950 ramp

primary
#9B9837
secondary
#7476BA
accent
#55D751
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121108
muted
#81807B

Preview Lab

Preview with #9B9837

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

Preview Lab → · Contrast checker → · Palette generator →

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