#8A8121#8A8121

#8A8121 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.4% C 0.113 H 103.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A8121
RGBrgb(138, 129, 33)
HSLhsl(55, 61%, 34%)
HSVhsv(55, 76%, 54%)
CMYKcmyk(0%, 6.5%, 76.1%, 45.9%)
CIE-LABlab(53.18, -7.88, 49.86)
CIE-LCHlch(53.18, 50.48, 98.98°)
OKLaboklab(59.37% -0.027 0.1097)
OKLCHoklch(59.37% 0.113 103.8)
XYZxyz(18.6068, 21.2144, 4.5532)
Luminance0.2121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8121 #212A8A
analogous
#8A4C21 #8A8121 #5E8A21
triadic
#8A8121 #218A81 #81218A
tetradic
#8A8121 #218A4C #212A8A #8A215E
square
#8A8121 #218A4C #212A8A #8A215E
split-complementary
#8A8121 #215E8A #4C218A
monochromatic
#272509 #595315 #8A8121 #BBAF2D #D5CA50

Accessibility & contrast

On white

4.01
#8A8121 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#8A8121 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8121
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8121#FFFFFF#000000##000000
##8A81211.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0E
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#95786F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a8121;
/* rgb */ color: rgb(138, 129, 33);
/* oklch */ color: oklch(59.4% 0.113 103.8);
Tailwind
colors: {
  custom: {
    50: '#afa564',
    500: '#8a8121',
    950: '#000000',
  },
}
SCSS
$custom: #8a8121;
$custom-light: #afa564;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8121",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 33
  },
  "hsl": {
    "h": 54.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59371,
    "c": 0.11297,
    "h": 103.8
  },
  "luminance": 0.21214
}

Semantic roles & 50–950 ramp

primary
#8A8121
secondary
#4E57B9
accent
#51E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8121

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

Preview Lab → · Contrast checker → · Palette generator →

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