#8A862A#8A862A

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

Color values

HEX#8A862A
RGBrgb(138, 134, 42)
HSLhsl(58, 53%, 35%)
HSVhsv(58, 70%, 54%)
CMYKcmyk(0%, 2.9%, 69.6%, 45.9%)
CIE-LABlab(54.68, -10.14, 47.78)
CIE-LCHlch(54.68, 48.85, 101.98°)
OKLaboklab(60.58% -0.0324 0.107)
OKLCHoklch(60.58% 0.112 106.9)
XYZxyz(19.4250, 22.6213, 5.5332)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A862A #2A2E8A
analogous
#8A562A #8A862A #5E8A2A
triadic
#8A862A #2A8A86 #862A8A
tetradic
#8A862A #2A8A56 #2A2E8A #8A2A5E
square
#8A862A #2A8A56 #2A2E8A #8A2A5E
split-complementary
#8A862A #2A5E8A #562A8A
monochromatic
#2C2B0D #5B581C #8A862A #B9B438 #CFCA60

Accessibility & contrast

On white

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

On black

5.52
#8A862A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A862A
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A862A#FFFFFF#000000##000000
##8A862A1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#91811C
Deuteranopia (green-blind)
#938430
Tritanopia (blue-blind)
#947D74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a862a;
/* rgb */ color: rgb(138, 134, 42);
/* oklch */ color: oklch(60.6% 0.112 106.9);
Tailwind
colors: {
  custom: {
    50: '#afa969',
    500: '#8a862a',
    950: '#000000',
  },
}
SCSS
$custom: #8a862a;
$custom-light: #afa969;
$custom-dark: #000000;
JSON
{
  "hex": "#8a862a",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 42
  },
  "hsl": {
    "h": 57.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60583,
    "c": 0.11179,
    "h": 106.9
  },
  "luminance": 0.22621
}

Semantic roles & 50–950 ramp

primary
#8A862A
secondary
#5B5FB4
accent
#51DD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A862A

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

Preview Lab → · Contrast checker → · Palette generator →

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