#8A862E#8A862E

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

Color values

HEX#8A862E
RGBrgb(138, 134, 46)
HSLhsl(57, 50%, 36%)
HSVhsv(57, 67%, 54%)
CMYKcmyk(0%, 2.9%, 66.7%, 45.9%)
CIE-LABlab(54.71, -9.89, 46.11)
CIE-LCHlch(54.71, 47.16, 102.11°)
OKLaboklab(60.62% -0.0313 0.1041)
OKLCHoklch(60.62% 0.109 106.7)
XYZxyz(19.5002, 22.6514, 5.9292)
Luminance0.2265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A862E #2E328A
analogous
#8A582E #8A862E #608A2E
triadic
#8A862E #2E8A86 #862E8A
tetradic
#8A862E #2E8A58 #2E328A #8A2E60
square
#8A862E #2E8A58 #2E328A #8A2E60
split-complementary
#8A862E #2E608A #582E8A
monochromatic
#2E2D0F #5C591F #8A862E #B8B33D #CCC866

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A862E#FFFFFF#000000##000000
##8A862E1.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)
#918122
Deuteranopia (green-blind)
#938533
Tritanopia (blue-blind)
#947D74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a862e;
/* rgb */ color: rgb(138, 134, 46);
/* oklch */ color: oklch(60.6% 0.109 106.7);
Tailwind
colors: {
  custom: {
    50: '#afa96c',
    500: '#8a862e',
    950: '#000000',
  },
}
SCSS
$custom: #8a862e;
$custom-light: #afa96c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a862e",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 46
  },
  "hsl": {
    "h": 57.391,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60617,
    "c": 0.10874,
    "h": 106.7
  },
  "luminance": 0.22651
}

Semantic roles & 50–950 ramp

primary
#8A862E
secondary
#6164B3
accent
#54DA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A862E

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

Preview Lab → · Contrast checker → · Palette generator →

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