#8A8A5F#8A8A5F

#8A8A5F is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.2% C 0.061 H 108.0°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#8A8A5F
RGBrgb(138, 138, 95)
HSLhsl(60, 18%, 46%)
HSVhsv(60, 31%, 54%)
CMYKcmyk(0%, 0%, 31.2%, 45.9%)
CIE-LABlab(56.49, -7.18, 23.10)
CIE-LCHlch(56.49, 24.19, 107.26°)
OKLaboklab(62.24% -0.0187 0.0576)
OKLCHoklch(62.24% 0.061 108)
XYZxyz(21.6354, 24.4068, 14.3955)
Luminance0.2441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A5F #5F5F8A
analogous
#8A745F #8A8A5F #748A5F
triadic
#8A8A5F #5F8A8A #8A5F8A
tetradic
#8A8A5F #5F8A74 #5F5F8A #8A5F74
square
#8A8A5F #5F8A74 #5F5F8A #8A5F74
split-complementary
#8A8A5F #5F748A #745F8A
monochromatic
#42422D #666646 #8A8A5F #A7A77F #C0C0A3

Accessibility & contrast

On white

3.57
#8A8A5F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#8A8A5F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A5F
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A5F#FFFFFF#000000##000000
##8A8A5F1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#91865C
Deuteranopia (green-blind)
#928861
Tritanopia (blue-blind)
#90857F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8a5f;
/* rgb */ color: rgb(138, 138, 95);
/* oklch */ color: oklch(62.2% 0.061 108.0);
Tailwind
colors: {
  custom: {
    50: '#adac8d',
    500: '#8a8a5f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a5f;
$custom-light: #adac8d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a5f",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 95
  },
  "hsl": {
    "h": 60,
    "s": 18.455,
    "l": 45.686
  },
  "oklch": {
    "l": 0.62241,
    "c": 0.06055,
    "h": 108
  },
  "luminance": 0.24406
}

Semantic roles & 50–950 ramp

primary
#8A8A5F
secondary
#9696AE
accent
#6DBB6D
background
#FAFAF8
surface
#F4F4F0
border
#CECECB
text
#10100C
muted
#7F7F7D

Preview Lab

Preview with #8A8A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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