#8A862F#8A862F

#8A862F is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.6% C 0.108 H 106.7°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A862F
RGBrgb(138, 134, 47)
HSLhsl(57, 49%, 36%)
HSVhsv(57, 66%, 54%)
CMYKcmyk(0%, 2.9%, 65.9%, 45.9%)
CIE-LABlab(54.72, -9.83, 45.68)
CIE-LCHlch(54.72, 46.72, 102.14°)
OKLaboklab(60.63% -0.031 0.1034)
OKLCHoklch(60.63% 0.108 106.7)
XYZxyz(19.5201, 22.6593, 6.0342)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A862F #2F338A
analogous
#8A592F #8A862F #618A2F
triadic
#8A862F #2F8A86 #862F8A
tetradic
#8A862F #2F8A59 #2F338A #8A2F61
square
#8A862F #2F8A59 #2F338A #8A2F61
split-complementary
#8A862F #2F618A #592F8A
monochromatic
#2F2D10 #5C5A1F #8A862F #B8B23F #CCC768

Accessibility & contrast

On white

3.80
#8A862F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#8A862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A862F
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A862F#FFFFFF#000000##000000
##8A862F1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#918124
Deuteranopia (green-blind)
#938534
Tritanopia (blue-blind)
#947D74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a862f;
/* rgb */ color: rgb(138, 134, 47);
/* oklch */ color: oklch(60.6% 0.108 106.7);
Tailwind
colors: {
  custom: {
    50: '#afa96c',
    500: '#8a862f',
    950: '#000000',
  },
}
SCSS
$custom: #8a862f;
$custom-light: #afa96c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a862f",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 57.363,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60627,
    "c": 0.10794,
    "h": 106.7
  },
  "luminance": 0.22659
}

Semantic roles & 50–950 ramp

primary
#8A862F
secondary
#6266B3
accent
#55D94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A862F

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

Preview Lab → · Contrast checker → · Palette generator →

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