#9B871E#9B871E

#9B871E 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#9B871E
RGBrgb(155, 135, 30)
HSLhsl(50, 68%, 36%)
HSVhsv(50, 81%, 61%)
CMYKcmyk(0%, 12.9%, 80.6%, 39.2%)
CIE-LABlab(56.48, -3.48, 54.53)
CIE-LCHlch(56.48, 54.64, 93.65°)
OKLaboklab(62.37% -0.0158 0.1183)
OKLCHoklch(62.37% 0.119 97.6)
XYZxyz(22.4171, 24.3914, 4.7553)
Luminance0.2439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B871E #1E329B
analogous
#9B491E #9B871E #719B1E
triadic
#9B871E #1E9B87 #871E9B
tetradic
#9B871E #1E9B49 #1E329B #9B1E71
square
#9B871E #1E9B49 #1E329B #9B1E71
split-complementary
#9B871E #1E719B #491E9B
monochromatic
#342E0A #685A14 #9B871E #CEB428 #DEC855

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B871E#FFFFFF#000000##000000
##9B871E1.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)
#958402
Deuteranopia (green-blind)
#9B8A26
Tritanopia (blue-blind)
#A87C73
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9b871e;
/* rgb */ color: rgb(155, 135, 30);
/* oklch */ color: oklch(62.4% 0.119 97.6);
Tailwind
colors: {
  custom: {
    50: '#bca964',
    500: '#9b871e',
    950: '#000000',
  },
}
SCSS
$custom: #9b871e;
$custom-light: #bca964;
$custom-dark: #000000;
JSON
{
  "hex": "#9b871e",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 50.4,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62366,
    "c": 0.11932,
    "h": 97.6
  },
  "luminance": 0.2439
}

Semantic roles & 50–950 ramp

primary
#9B871E
secondary
#5365C2
accent
#59EA3D
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B871E

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

Preview Lab → · Contrast checker → · Palette generator →

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