#8A8A4F#8A8A4F

#8A8A4F is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.9% C 0.080 H 108.5°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A8A4F
RGBrgb(138, 138, 79)
HSLhsl(60, 27%, 43%)
HSVhsv(60, 43%, 54%)
CMYKcmyk(0%, 0%, 42.8%, 45.9%)
CIE-LABlab(56.23, -9.17, 31.53)
CIE-LCHlch(56.23, 32.84, 106.21°)
OKLaboklab(61.95% -0.0256 0.0763)
OKLCHoklch(61.95% 0.08 108.5)
XYZxyz(20.9813, 24.1452, 10.9508)
Luminance0.2414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A4F #4F4F8A
analogous
#8A6C4F #8A8A4F #6C8A4F
triadic
#8A8A4F #4F8A8A #8A4F8A
tetradic
#8A8A4F #4F8A6C #4F4F8A #8A4F6C
square
#8A8A4F #4F8A6C #4F4F8A #8A4F6C
split-complementary
#8A8A4F #4F6C8A #6C4F8A
monochromatic
#3C3C22 #636339 #8A8A4F #ABAB6C #C1C193

Accessibility & contrast

On white

3.60
#8A8A4F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8A8A4F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A4F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A4F#FFFFFF#000000##000000
##8A8A4F1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#93864A
Deuteranopia (green-blind)
#948852
Tritanopia (blue-blind)
#92837C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8a4f;
/* rgb */ color: rgb(138, 138, 79);
/* oklch */ color: oklch(61.9% 0.080 108.5);
Tailwind
colors: {
  custom: {
    50: '#adac81',
    500: '#8a8a4f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a4f;
$custom-light: #adac81;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a4f",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 79
  },
  "hsl": {
    "h": 60,
    "s": 27.189,
    "l": 42.549
  },
  "oklch": {
    "l": 0.61949,
    "c": 0.08043,
    "h": 108.5
  },
  "luminance": 0.24145
}

Semantic roles & 50–950 ramp

primary
#8A8A4F
secondary
#8787AE
accent
#64C464
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#10100A
muted
#7F7F7C

Preview Lab

Preview with #8A8A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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