#8A871F#8A871F

#8A871F is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.7% C 0.120 H 107.8°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A871F
RGBrgb(138, 135, 31)
HSLhsl(58, 63%, 33%)
HSVhsv(58, 78%, 54%)
CMYKcmyk(0%, 2.2%, 77.5%, 45.9%)
CIE-LABlab(54.90, -11.24, 52.17)
CIE-LCHlch(54.90, 53.37, 102.15°)
OKLaboklab(60.73% -0.0366 0.1142)
OKLCHoklch(60.73% 0.12 107.8)
XYZxyz(19.3933, 22.8308, 4.6813)
Luminance0.2283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A871F #1F228A
analogous
#8A511F #8A871F #578A1F
triadic
#8A871F #1F8A87 #871F8A
tetradic
#8A871F #1F8A51 #1F228A #8A1F57
square
#8A871F #1F8A51 #1F228A #8A1F57
split-complementary
#8A871F #1F578A #511F8A
monochromatic
#262509 #585614 #8A871F #BCB82A #D7D34C

Accessibility & contrast

On white

3.77
#8A871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A871F
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A871F#FFFFFF#000000##000000
##8A871F1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938106
Deuteranopia (green-blind)
#958527
Tritanopia (blue-blind)
#947E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a871f;
/* rgb */ color: rgb(138, 135, 31);
/* oklch */ color: oklch(60.7% 0.120 107.8);
Tailwind
colors: {
  custom: {
    50: '#b0a964',
    500: '#8a871f',
    950: '#000000',
  },
}
SCSS
$custom: #8a871f;
$custom-light: #b0a964;
$custom-dark: #000000;
JSON
{
  "hex": "#8a871f",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 58.318,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60733,
    "c": 0.11993,
    "h": 107.8
  },
  "luminance": 0.2283
}

Semantic roles & 50–950 ramp

primary
#8A871F
secondary
#4B4EBA
accent
#46E641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A871F

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

Preview Lab → · Contrast checker → · Palette generator →

#8A871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva