#8A822B#8A822B

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

Color values

HEX#8A822B
RGBrgb(138, 130, 43)
HSLhsl(55, 52%, 35%)
HSVhsv(55, 69%, 54%)
CMYKcmyk(0%, 5.8%, 68.8%, 45.9%)
CIE-LABlab(53.54, -7.90, 46.20)
CIE-LCHlch(53.54, 46.87, 99.70°)
OKLaboklab(59.68% -0.026 0.1038)
OKLCHoklch(59.68% 0.107 104)
XYZxyz(18.9007, 21.5437, 5.4478)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A822B #2B338A
analogous
#8A522B #8A822B #638A2B
triadic
#8A822B #2B8A82 #822B8A
tetradic
#8A822B #2B8A52 #2B338A #8A2B63
square
#8A822B #2B8A52 #2B338A #8A2B63
split-complementary
#8A822B #2B638A #522B8A
monochromatic
#2D2A0E #5B561C #8A822B #B9AE3A #CEC561

Accessibility & contrast

On white

3.96
#8A822B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A822B#FFFFFF#000000##000000
##8A822B1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a822b;
/* rgb */ color: rgb(138, 130, 43);
/* oklch */ color: oklch(59.7% 0.107 104.0);
Tailwind
colors: {
  custom: {
    50: '#afa66a',
    500: '#8a822b',
    950: '#000000',
  },
}
SCSS
$custom: #8a822b;
$custom-light: #afa66a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a822b",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 43
  },
  "hsl": {
    "h": 54.947,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59677,
    "c": 0.10702,
    "h": 104
  },
  "luminance": 0.21543
}

Semantic roles & 50–950 ramp

primary
#8A822B
secondary
#5D64B4
accent
#58DC4C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A822B

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

Preview Lab → · Contrast checker → · Palette generator →

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