#8A822D#8A822D

#8A822D is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.7% C 0.105 H 103.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A822D
RGBrgb(138, 130, 45)
HSLhsl(55, 51%, 36%)
HSVhsv(55, 67%, 54%)
CMYKcmyk(0%, 5.8%, 67.4%, 45.9%)
CIE-LABlab(53.56, -7.77, 45.34)
CIE-LCHlch(53.56, 46.01, 99.73°)
OKLaboklab(59.7% -0.0254 0.1024)
OKLCHoklch(59.7% 0.105 103.9)
XYZxyz(18.9383, 21.5587, 5.6458)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A822D #2D358A
analogous
#8A532D #8A822D #638A2D
triadic
#8A822D #2D8A82 #822D8A
tetradic
#8A822D #2D8A53 #2D358A #8A2D63
square
#8A822D #2D8A53 #2D358A #8A2D63
split-complementary
#8A822D #2D638A #532D8A
monochromatic
#2E2B0F #5C571E #8A822D #B8AD3C #CDC465

Accessibility & contrast

On white

3.95
#8A822D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8A822D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A822D
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A822D#FFFFFF#000000##000000
##8A822D1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E22
Deuteranopia (green-blind)
#908232
Tritanopia (blue-blind)
#947970
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a822d;
/* rgb */ color: rgb(138, 130, 45);
/* oklch */ color: oklch(59.7% 0.105 103.9);
Tailwind
colors: {
  custom: {
    50: '#afa66b',
    500: '#8a822d',
    950: '#000000',
  },
}
SCSS
$custom: #8a822d;
$custom-light: #afa66b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a822d",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 45
  },
  "hsl": {
    "h": 54.839,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59695,
    "c": 0.10546,
    "h": 103.9
  },
  "luminance": 0.21558
}

Semantic roles & 50–950 ramp

primary
#8A822D
secondary
#6067B3
accent
#5ADA4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A822D

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

Preview Lab → · Contrast checker → · Palette generator →

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