#7F985F#7F985F

#7F985F is a light, moderate yellow-green. Relative luminance 0.278; OKLCH L 64.6% C 0.085 H 127.9°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7F985F
RGBrgb(127, 152, 95)
HSLhsl(86, 23%, 48%)
HSVhsv(86, 38%, 60%)
CMYKcmyk(16.4%, 0%, 37.5%, 40.4%)
CIE-LABlab(59.70, -19.10, 27.16)
CIE-LCHlch(59.70, 33.20, 125.11°)
OKLaboklab(64.59% -0.0522 0.0671)
OKLCHoklch(64.59% 0.085 127.9)
XYZxyz(22.0459, 27.7945, 15.0277)
Luminance0.2779 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F985F #785F98
analogous
#98945F #7F985F #62985F
triadic
#7F985F #5F7F98 #985F7F
tetradic
#7F985F #5F9894 #785F98 #985F62
square
#7F985F #5F9894 #785F98 #985F62
split-complementary
#7F985F #5F6298 #945F98
monochromatic
#404D30 #607247 #7F985F #9DB183 #BBC9A8

Accessibility & contrast

On white

3.20
#7F985F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#7F985F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F985F
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F985F#FFFFFF#000000##000000
##7F985F1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D915B
Deuteranopia (green-blind)
#9A8F62
Tritanopia (blue-blind)
#82938A
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #7f985f;
/* rgb */ color: rgb(127, 152, 95);
/* oklch */ color: oklch(64.6% 0.085 127.9);
Tailwind
colors: {
  custom: {
    50: '#a5b68d',
    500: '#7f985f',
    950: '#000000',
  },
}
SCSS
$custom: #7f985f;
$custom-light: #a5b68d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f985f",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 95
  },
  "hsl": {
    "h": 86.316,
    "s": 23.077,
    "l": 48.431
  },
  "oklch": {
    "l": 0.6459,
    "c": 0.08503,
    "h": 127.9
  },
  "luminance": 0.27795
}

Semantic roles & 50–950 ramp

primary
#7F985F
secondary
#A89CB7
accent
#68C08F
background
#FAFBF8
surface
#F4F6F0
border
#CED0CB
text
#0F110C
muted
#7F807D

Preview Lab

Preview with #7F985F

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

Preview Lab → · Contrast checker → · Palette generator →

#7F985F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva