#8A8D3F#8A8D3F

#8A8D3F is a light, moderate yellow. Relative luminance 0.248; OKLCH L 62.4% C 0.101 H 111.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A8D3F
RGBrgb(138, 141, 63)
HSLhsl(62, 38%, 40%)
HSVhsv(62, 55%, 55%)
CMYKcmyk(2.1%, 0%, 55.3%, 44.7%)
CIE-LABlab(56.89, -12.38, 40.57)
CIE-LCHlch(56.89, 42.42, 106.97°)
OKLaboklab(62.41% -0.0364 0.0947)
OKLCHoklch(62.41% 0.101 111)
XYZxyz(20.9038, 24.8124, 8.3898)
Luminance0.2481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D3F #423F8D
analogous
#8D693F #8A8D3F #638D3F
triadic
#8A8D3F #3F8A8D #8D3F8A
tetradic
#8A8D3F #3F8D69 #423F8D #8D3F63
square
#8A8D3F #3F8D69 #423F8D #8D3F63
split-complementary
#8A8D3F #3F638D #693F8D
monochromatic
#373819 #61632C #8A8D3F #B0B356 #C4C680

Accessibility & contrast

On white

3.52
#8A8D3F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8A8D3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D3F
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D3F#FFFFFF#000000##000000
##8A8D3F1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#978737
Deuteranopia (green-blind)
#978A43
Tritanopia (blue-blind)
#93857C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d3f;
/* rgb */ color: rgb(138, 141, 63);
/* oklch */ color: oklch(62.4% 0.101 111.0);
Tailwind
colors: {
  custom: {
    50: '#aeae77',
    500: '#8a8d3f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d3f;
$custom-light: #aeae77;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d3f",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 63
  },
  "hsl": {
    "h": 62.308,
    "s": 38.235,
    "l": 40
  },
  "oklch": {
    "l": 0.62409,
    "c": 0.10147,
    "h": 111
  },
  "luminance": 0.24812
}

Semantic roles & 50–950 ramp

primary
#8A8D3F
secondary
#7977B1
accent
#5ACE5E
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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