#7E8D3F#7E8D3F

#7E8D3F is a mid, moderate yellow-green. Relative luminance 0.238; OKLCH L 61.4% C 0.105 H 118.7°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E8D3F
RGBrgb(126, 141, 63)
HSLhsl(72, 38%, 40%)
HSVhsv(72, 55%, 55%)
CMYKcmyk(10.6%, 0%, 55.3%, 44.7%)
CIE-LABlab(55.93, -17.56, 39.21)
CIE-LCHlch(55.93, 42.97, 114.12°)
OKLaboklab(61.4% -0.0503 0.092)
OKLCHoklch(61.4% 0.105 118.7)
XYZxyz(19.0265, 23.8444, 8.3018)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D3F #4E3F8D
analogous
#8D753F #7E8D3F #578D3F
triadic
#7E8D3F #3F7E8D #8D3F7E
tetradic
#7E8D3F #3F8D75 #4E3F8D #8D3F57
square
#7E8D3F #3F8D75 #4E3F8D #8D3F57
split-complementary
#7E8D3F #3F578D #753F8D
monochromatic
#323819 #58632C #7E8D3F #A1B356 #B9C680

Accessibility & contrast

On white

3.64
#7E8D3F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7E8D3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D3F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D3F#FFFFFF#000000##000000
##7E8D3F1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958637
Deuteranopia (green-blind)
#948644
Tritanopia (blue-blind)
#84867C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8d3f;
/* rgb */ color: rgb(126, 141, 63);
/* oklch */ color: oklch(61.4% 0.105 118.7);
Tailwind
colors: {
  custom: {
    50: '#a5ae77',
    500: '#7e8d3f',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d3f;
$custom-light: #a5ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d3f",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 63
  },
  "hsl": {
    "h": 71.538,
    "s": 38.235,
    "l": 40
  },
  "oklch": {
    "l": 0.61402,
    "c": 0.10484,
    "h": 118.7
  },
  "luminance": 0.23844
}

Semantic roles & 50–950 ramp

primary
#7E8D3F
secondary
#8277B1
accent
#5ACE70
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7E8D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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