#9C871F#9C871F

#9C871F is a light, moderate yellow. Relative luminance 0.245; OKLCH L 62.5% C 0.119 H 97.0°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#9C871F
RGBrgb(156, 135, 31)
HSLhsl(50, 67%, 37%)
HSVhsv(50, 80%, 61%)
CMYKcmyk(0%, 13.5%, 80.1%, 38.8%)
CIE-LABlab(56.58, -2.98, 54.33)
CIE-LCHlch(56.58, 54.41, 93.14°)
OKLaboklab(62.47% -0.0144 0.118)
OKLCHoklch(62.47% 0.119 97)
XYZxyz(22.6228, 24.4960, 4.8327)
Luminance0.2450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C871F #1F349C
analogous
#9C491F #9C871F #739C1F
triadic
#9C871F #1F9C87 #871F9C
tetradic
#9C871F #1F9C49 #1F349C #9C1F73
square
#9C871F #1F9C49 #1F349C #9C1F73
split-complementary
#9C871F #1F739C #491F9C
monochromatic
#362F0B #695B15 #9C871F #CFB329 #DEC758

Accessibility & contrast

On white

3.56
#9C871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#9C871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C871F
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C871F#FFFFFF#000000##000000
##9C871F1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968405
Deuteranopia (green-blind)
#9B8B26
Tritanopia (blue-blind)
#A97C74
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9c871f;
/* rgb */ color: rgb(156, 135, 31);
/* oklch */ color: oklch(62.5% 0.119 97.0);
Tailwind
colors: {
  custom: {
    50: '#bda964',
    500: '#9c871f',
    950: '#000000',
  },
}
SCSS
$custom: #9c871f;
$custom-light: #bda964;
$custom-dark: #000000;
JSON
{
  "hex": "#9c871f",
  "rgb": {
    "r": 156,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 49.92,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62472,
    "c": 0.11886,
    "h": 97
  },
  "luminance": 0.24495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C871F

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

Preview Lab → · Contrast checker → · Palette generator →

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