#8A8421#8A8421

#8A8421 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.1% C 0.116 H 105.8°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A8421
RGBrgb(138, 132, 33)
HSLhsl(57, 61%, 34%)
HSVhsv(57, 76%, 54%)
CMYKcmyk(0%, 4.3%, 76.1%, 45.9%)
CIE-LABlab(54.04, -9.52, 50.67)
CIE-LCHlch(54.04, 51.56, 100.64°)
OKLaboklab(60.06% -0.0316 0.1114)
OKLCHoklch(60.06% 0.116 105.8)
XYZxyz(19.0078, 22.0163, 4.6869)
Luminance0.2202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8421 #21278A
analogous
#8A4F21 #8A8421 #5B8A21
triadic
#8A8421 #218A84 #84218A
tetradic
#8A8421 #218A4F #21278A #8A215B
square
#8A8421 #218A4F #21278A #8A215B
split-complementary
#8A8421 #215B8A #4F218A
monochromatic
#272609 #595515 #8A8421 #BBB32D #D5CE50

Accessibility & contrast

On white

3.89
#8A8421 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#8A8421 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8421
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8421#FFFFFF#000000##000000
##8A84211.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#957B71
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8421;
/* rgb */ color: rgb(138, 132, 33);
/* oklch */ color: oklch(60.1% 0.116 105.8);
Tailwind
colors: {
  custom: {
    50: '#afa764',
    500: '#8a8421',
    950: '#000000',
  },
}
SCSS
$custom: #8a8421;
$custom-light: #afa764;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8421",
  "rgb": {
    "r": 138,
    "g": 132,
    "b": 33
  },
  "hsl": {
    "h": 56.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60057,
    "c": 0.11581,
    "h": 105.8
  },
  "luminance": 0.22016
}

Semantic roles & 50–950 ramp

primary
#8A8421
secondary
#4E54B9
accent
#4DE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8421

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

Preview Lab → · Contrast checker → · Palette generator →

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