#9B871F#9B871F

#9B871F is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.4% C 0.119 H 97.6°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9B871F
RGBrgb(155, 135, 31)
HSLhsl(50, 67%, 36%)
HSVhsv(50, 80%, 61%)
CMYKcmyk(0%, 12.9%, 80%, 39.2%)
CIE-LABlab(56.48, -3.44, 54.20)
CIE-LCHlch(56.48, 54.31, 93.63°)
OKLaboklab(62.37% -0.0156 0.1178)
OKLCHoklch(62.37% 0.119 97.6)
XYZxyz(22.4300, 24.3966, 4.8236)
Luminance0.2440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B871F #1F339B
analogous
#9B491F #9B871F #719B1F
triadic
#9B871F #1F9B87 #871F9B
tetradic
#9B871F #1F9B49 #1F339B #9B1F71
square
#9B871F #1F9B49 #1F339B #9B1F71
split-complementary
#9B871F #1F719B #491F9B
monochromatic
#352E0B #685B15 #9B871F #CEB329 #DDC857

Accessibility & contrast

On white

3.57
#9B871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#9B871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B871F
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B871F#FFFFFF#000000##000000
##9B871F1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958405
Deuteranopia (green-blind)
#9B8A26
Tritanopia (blue-blind)
#A87C74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9b871f;
/* rgb */ color: rgb(155, 135, 31);
/* oklch */ color: oklch(62.4% 0.119 97.6);
Tailwind
colors: {
  custom: {
    50: '#bca964',
    500: '#9b871f',
    950: '#000000',
  },
}
SCSS
$custom: #9b871f;
$custom-light: #bca964;
$custom-dark: #000000;
JSON
{
  "hex": "#9b871f",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 50.323,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62371,
    "c": 0.1188,
    "h": 97.6
  },
  "luminance": 0.24395
}

Semantic roles & 50–950 ramp

primary
#9B871F
secondary
#5566C1
accent
#5AEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B871F

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

Preview Lab → · Contrast checker → · Palette generator →

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