#9B861F#9B861F

#9B861F is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.2% C 0.118 H 96.8°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#9B861F
RGBrgb(155, 134, 31)
HSLhsl(50, 67%, 36%)
HSVhsv(50, 80%, 61%)
CMYKcmyk(0%, 13.5%, 80%, 39.2%)
CIE-LABlab(56.21, -2.89, 53.95)
CIE-LCHlch(56.21, 54.03, 93.07°)
OKLaboklab(62.15% -0.0141 0.1172)
OKLCHoklch(62.15% 0.118 96.8)
XYZxyz(22.2912, 24.1189, 4.7773)
Luminance0.2412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B861F #1F349B
analogous
#9B481F #9B861F #729B1F
triadic
#9B861F #1F9B86 #861F9B
tetradic
#9B861F #1F9B48 #1F349B #9B1F72
square
#9B861F #1F9B48 #1F349B #9B1F72
split-complementary
#9B861F #1F729B #481F9B
monochromatic
#352E0B #685A15 #9B861F #CEB229 #DDC757

Accessibility & contrast

On white

3.61
#9B861F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#9B861F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B861F
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B861F#FFFFFF#000000##000000
##9B861F1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948306
Deuteranopia (green-blind)
#9A8A26
Tritanopia (blue-blind)
#A87B73
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9b861f;
/* rgb */ color: rgb(155, 134, 31);
/* oklch */ color: oklch(62.2% 0.118 96.8);
Tailwind
colors: {
  custom: {
    50: '#bca864',
    500: '#9b861f',
    950: '#000000',
  },
}
SCSS
$custom: #9b861f;
$custom-light: #bca864;
$custom-dark: #000000;
JSON
{
  "hex": "#9b861f",
  "rgb": {
    "r": 155,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 49.839,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62153,
    "c": 0.11808,
    "h": 96.8
  },
  "luminance": 0.24118
}

Semantic roles & 50–950 ramp

primary
#9B861F
secondary
#5567C1
accent
#5BEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B861F

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

Preview Lab → · Contrast checker → · Palette generator →

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