#8A862B#8A862B

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

Color values

HEX#8A862B
RGBrgb(138, 134, 43)
HSLhsl(57, 52%, 35%)
HSVhsv(57, 69%, 54%)
CMYKcmyk(0%, 2.9%, 68.8%, 45.9%)
CIE-LABlab(54.69, -10.08, 47.37)
CIE-LCHlch(54.69, 48.43, 102.01°)
OKLaboklab(60.59% -0.0321 0.1063)
OKLCHoklch(60.59% 0.111 106.8)
XYZxyz(19.4431, 22.6285, 5.6286)
Luminance0.2263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A862B #2B2F8A
analogous
#8A572B #8A862B #5E8A2B
triadic
#8A862B #2B8A86 #862B8A
tetradic
#8A862B #2B8A57 #2B2F8A #8A2B5E
square
#8A862B #2B8A57 #2B2F8A #8A2B5E
split-complementary
#8A862B #2B5E8A #572B8A
monochromatic
#2D2B0E #5B591C #8A862B #B9B33A #CEC961

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A862B#FFFFFF#000000##000000
##8A862B1.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)
#91811E
Deuteranopia (green-blind)
#938531
Tritanopia (blue-blind)
#947D74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a862b;
/* rgb */ color: rgb(138, 134, 43);
/* oklch */ color: oklch(60.6% 0.111 106.8);
Tailwind
colors: {
  custom: {
    50: '#afa96a',
    500: '#8a862b',
    950: '#000000',
  },
}
SCSS
$custom: #8a862b;
$custom-light: #afa96a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a862b",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 43
  },
  "hsl": {
    "h": 57.474,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60591,
    "c": 0.11105,
    "h": 106.8
  },
  "luminance": 0.22628
}

Semantic roles & 50–950 ramp

primary
#8A862B
secondary
#5D60B4
accent
#52DC4C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A862B

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

Preview Lab → · Contrast checker → · Palette generator →

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