#8A862D#8A862D

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

Color values

HEX#8A862D
RGBrgb(138, 134, 45)
HSLhsl(57, 51%, 36%)
HSVhsv(57, 67%, 54%)
CMYKcmyk(0%, 2.9%, 67.4%, 45.9%)
CIE-LABlab(54.70, -9.96, 46.54)
CIE-LCHlch(54.70, 47.59, 102.08°)
OKLaboklab(60.61% -0.0316 0.1049)
OKLCHoklch(60.61% 0.11 106.8)
XYZxyz(19.4807, 22.6436, 5.8266)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A862D #2D318A
analogous
#8A572D #8A862D #5F8A2D
triadic
#8A862D #2D8A86 #862D8A
tetradic
#8A862D #2D8A57 #2D318A #8A2D5F
square
#8A862D #2D8A57 #2D318A #8A2D5F
split-complementary
#8A862D #2D5F8A #572D8A
monochromatic
#2E2C0F #5C591E #8A862D #B8B33C #CDC865

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #8a862d;
/* rgb */ color: rgb(138, 134, 45);
/* oklch */ color: oklch(60.6% 0.110 106.8);
Tailwind
colors: {
  custom: {
    50: '#afa96b',
    500: '#8a862d',
    950: '#000000',
  },
}
SCSS
$custom: #8a862d;
$custom-light: #afa96b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a862d",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 45
  },
  "hsl": {
    "h": 57.419,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60608,
    "c": 0.10953,
    "h": 106.8
  },
  "luminance": 0.22643
}

Semantic roles & 50–950 ramp

primary
#8A862D
secondary
#6063B3
accent
#54DA4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A862D

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

Preview Lab → · Contrast checker → · Palette generator →

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