#9A871D#9A871D

#9A871D is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.3% C 0.120 H 98.3°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9A871D
RGBrgb(154, 135, 29)
HSLhsl(51, 68%, 36%)
HSVhsv(51, 81%, 60%)
CMYKcmyk(0%, 12.3%, 81.2%, 39.6%)
CIE-LABlab(56.37, -3.98, 54.73)
CIE-LCHlch(56.37, 54.87, 94.16°)
OKLaboklab(62.26% -0.0173 0.1185)
OKLCHoklch(62.26% 0.12 98.3)
XYZxyz(22.2133, 24.2878, 4.6801)
Luminance0.2429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A871D #1D309A
analogous
#9A481D #9A871D #6E9A1D
triadic
#9A871D #1D9A87 #871D9A
tetradic
#9A871D #1D9A48 #1D309A #9A1D6E
square
#9A871D #1D9A48 #1D309A #9A1D6E
split-complementary
#9A871D #1D6E9A #481D9A
monochromatic
#332D0A #665A13 #9A871D #CEB427 #DFC953

Accessibility & contrast

On white

3.59
#9A871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#9A871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A871D
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A871D#FFFFFF#000000##000000
##9A871D1.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#9A8A25
Tritanopia (blue-blind)
#A77C73
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9a871d;
/* rgb */ color: rgb(154, 135, 29);
/* oklch */ color: oklch(62.3% 0.120 98.3);
Tailwind
colors: {
  custom: {
    50: '#bca963',
    500: '#9a871d',
    950: '#000000',
  },
}
SCSS
$custom: #9a871d;
$custom-light: #bca963;
$custom-dark: #000000;
JSON
{
  "hex": "#9a871d",
  "rgb": {
    "r": 154,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 50.88,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6226,
    "c": 0.11978,
    "h": 98.3
  },
  "luminance": 0.24287
}

Semantic roles & 50–950 ramp

primary
#9A871D
secondary
#5162C2
accent
#57EB3D
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A871D

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

Preview Lab → · Contrast checker → · Palette generator →

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