#8A8A2F#8A8A2F

#8A8A2F is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.5% C 0.112 H 109.3°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A8A2F
RGBrgb(138, 138, 47)
HSLhsl(60, 49%, 36%)
HSVhsv(60, 66%, 54%)
CMYKcmyk(0%, 0%, 65.9%, 45.9%)
CIE-LABlab(55.87, -11.99, 46.88)
CIE-LCHlch(55.87, 48.39, 104.34°)
OKLaboklab(61.55% -0.0371 0.1059)
OKLCHoklch(61.55% 0.112 109.3)
XYZxyz(20.0834, 23.7860, 6.2220)
Luminance0.2379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A2F #2F2F8A
analogous
#8A5D2F #8A8A2F #5D8A2F
triadic
#8A8A2F #2F8A8A #8A2F8A
tetradic
#8A8A2F #2F8A5D #2F2F8A #8A2F5D
square
#8A8A2F #2F8A5D #2F2F8A #8A2F5D
split-complementary
#8A8A2F #2F5D8A #5D2F8A
monochromatic
#2F2F10 #5C5C1F #8A8A2F #B8B83F #CCCC68

Accessibility & contrast

On white

3.65
#8A8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8A8A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A2F
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A2F#FFFFFF#000000##000000
##8A8A2F1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#958423
Deuteranopia (green-blind)
#968735
Tritanopia (blue-blind)
#948177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a2f;
/* rgb */ color: rgb(138, 138, 47);
/* oklch */ color: oklch(61.5% 0.112 109.3);
Tailwind
colors: {
  custom: {
    50: '#afab6d',
    500: '#8a8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a2f;
$custom-light: #afab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a2f",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61546,
    "c": 0.11224,
    "h": 109.3
  },
  "luminance": 0.23785
}

Semantic roles & 50–950 ramp

primary
#8A8A2F
secondary
#6262B3
accent
#4FD94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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