#8A842E#8A842E

#8A842E is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.2% C 0.107 H 105.3°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8A842E
RGBrgb(138, 132, 46)
HSLhsl(56, 50%, 36%)
HSVhsv(56, 67%, 54%)
CMYKcmyk(0%, 4.3%, 66.7%, 45.9%)
CIE-LABlab(54.14, -8.80, 45.51)
CIE-LCHlch(54.14, 46.35, 100.95°)
OKLaboklab(60.16% -0.0282 0.1029)
OKLCHoklch(60.16% 0.107 105.3)
XYZxyz(19.2263, 22.1037, 5.8379)
Luminance0.2210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A842E #2E348A
analogous
#8A562E #8A842E #628A2E
triadic
#8A842E #2E8A84 #842E8A
tetradic
#8A842E #2E8A56 #2E348A #8A2E62
square
#8A842E #2E8A56 #2E348A #8A2E62
split-complementary
#8A842E #2E628A #562E8A
monochromatic
#2E2C0F #5C581F #8A842E #B8B03D #CCC566

Accessibility & contrast

On white

3.87
#8A842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#8A842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A842E
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A842E#FFFFFF#000000##000000
##8A842E1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F23
Deuteranopia (green-blind)
#928333
Tritanopia (blue-blind)
#947B72
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a842e;
/* rgb */ color: rgb(138, 132, 46);
/* oklch */ color: oklch(60.2% 0.107 105.3);
Tailwind
colors: {
  custom: {
    50: '#afa76b',
    500: '#8a842e',
    950: '#000000',
  },
}
SCSS
$custom: #8a842e;
$custom-light: #afa76b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a842e",
  "rgb": {
    "r": 138,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 56.087,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.6016,
    "c": 0.10667,
    "h": 105.3
  },
  "luminance": 0.22103
}

Semantic roles & 50–950 ramp

primary
#8A842E
secondary
#6166B3
accent
#57DA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A842E

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

Preview Lab → · Contrast checker → · Palette generator →

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