#9B851F#9B851F

#9B851F is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.117 H 96.1°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9B851F
RGBrgb(155, 133, 31)
HSLhsl(49, 67%, 36%)
HSVhsv(49, 80%, 61%)
CMYKcmyk(0%, 14.2%, 80%, 39.2%)
CIE-LABlab(55.93, -2.34, 53.70)
CIE-LCHlch(55.93, 53.76, 92.49°)
OKLaboklab(61.93% -0.0125 0.1167)
OKLCHoklch(61.93% 0.117 96.1)
XYZxyz(22.1536, 23.8438, 4.7315)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B851F #1F359B
analogous
#9B471F #9B851F #739B1F
triadic
#9B851F #1F9B85 #851F9B
tetradic
#9B851F #1F9B47 #1F359B #9B1F73
square
#9B851F #1F9B47 #1F359B #9B1F73
split-complementary
#9B851F #1F739B #471F9B
monochromatic
#352D0B #685915 #9B851F #CEB129 #DDC657

Accessibility & contrast

On white

3.64
#9B851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#9B851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B851F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B851F#FFFFFF#000000##000000
##9B851F1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#A87A72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9b851f;
/* rgb */ color: rgb(155, 133, 31);
/* oklch */ color: oklch(61.9% 0.117 96.1);
Tailwind
colors: {
  custom: {
    50: '#bca864',
    500: '#9b851f',
    950: '#000000',
  },
}
SCSS
$custom: #9b851f;
$custom-light: #bca864;
$custom-dark: #000000;
JSON
{
  "hex": "#9b851f",
  "rgb": {
    "r": 155,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 49.355,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61935,
    "c": 0.11737,
    "h": 96.1
  },
  "luminance": 0.23843
}

Semantic roles & 50–950 ramp

primary
#9B851F
secondary
#5568C1
accent
#5DEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B851F

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

Preview Lab → · Contrast checker → · Palette generator →

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