#8A9871#8A9871

#8A9871 is a light, muted yellow-green. Relative luminance 0.291; OKLCH L 65.8% C 0.058 H 124.0°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8A9871
RGBrgb(138, 152, 113)
HSLhsl(82, 16%, 52%)
HSVhsv(82, 26%, 60%)
CMYKcmyk(9.2%, 0%, 25.7%, 40.4%)
CIE-LABlab(60.83, -12.12, 18.91)
CIE-LCHlch(60.83, 22.46, 122.66°)
OKLaboklab(65.8% -0.0323 0.0479)
OKLCHoklch(65.8% 0.058 124)
XYZxyz(24.6898, 29.0519, 19.9264)
Luminance0.2905 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9871 #7F7198
analogous
#989271 #8A9871 #779871
triadic
#8A9871 #718A98 #98718A
tetradic
#8A9871 #719892 #7F7198 #987177
square
#8A9871 #719892 #7F7198 #987177
split-complementary
#8A9871 #717798 #927198
monochromatic
#4B533C #6A7656 #8A9871 #A7B294 #C4CBB8

Accessibility & contrast

On white

3.08
#8A9871 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#8A9871 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9871
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9871#FFFFFF#000000##000000
##8A98711.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D936F
Deuteranopia (green-blind)
#9B9373
Tritanopia (blue-blind)
#8D948E
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a9871;
/* rgb */ color: rgb(138, 152, 113);
/* oklch */ color: oklch(65.8% 0.058 124.0);
Tailwind
colors: {
  custom: {
    50: '#acb69a',
    500: '#8a9871',
    950: '#000000',
  },
}
SCSS
$custom: #8a9871;
$custom-light: #acb69a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9871",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 113
  },
  "hsl": {
    "h": 81.538,
    "s": 15.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.65798,
    "c": 0.05778,
    "h": 124
  },
  "luminance": 0.29052
}

Semantic roles & 50–950 ramp

primary
#8A9871
secondary
#B0AABB
accent
#6FB98A
background
#FAFBF9
surface
#F4F6F2
border
#CED0CC
text
#10110E
muted
#7F807E

Preview Lab

Preview with #8A9871

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

Preview Lab → · Contrast checker → · Palette generator →

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