#8A822F#8A822F

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

Color values

HEX#8A822F
RGBrgb(138, 130, 47)
HSLhsl(55, 49%, 36%)
HSVhsv(55, 66%, 54%)
CMYKcmyk(0%, 5.8%, 65.9%, 45.9%)
CIE-LABlab(53.57, -7.64, 44.47)
CIE-LCHlch(53.57, 45.12, 99.75°)
OKLaboklab(59.71% -0.0248 0.1009)
OKLCHoklch(59.71% 0.104 103.8)
XYZxyz(18.9777, 21.5745, 5.8534)
Luminance0.2157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A822F #2F378A
analogous
#8A552F #8A822F #658A2F
triadic
#8A822F #2F8A82 #822F8A
tetradic
#8A822F #2F8A55 #2F378A #8A2F65
square
#8A822F #2F8A55 #2F378A #8A2F65
split-complementary
#8A822F #2F658A #552F8A
monochromatic
#2F2C10 #5C571F #8A822F #B8AD3F #CCC368

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A822F#FFFFFF#000000##000000
##8A822F1.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)
#8D7E25
Deuteranopia (green-blind)
#908234
Tritanopia (blue-blind)
#947971
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a822f;
/* rgb */ color: rgb(138, 130, 47);
/* oklch */ color: oklch(59.7% 0.104 103.8);
Tailwind
colors: {
  custom: {
    50: '#afa66c',
    500: '#8a822f',
    950: '#000000',
  },
}
SCSS
$custom: #8a822f;
$custom-light: #afa66c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a822f",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 47
  },
  "hsl": {
    "h": 54.725,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59714,
    "c": 0.10385,
    "h": 103.8
  },
  "luminance": 0.21574
}

Semantic roles & 50–950 ramp

primary
#8A822F
secondary
#6269B3
accent
#5BD94F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A822F

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

Preview Lab → · Contrast checker → · Palette generator →

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