#7C8A3F#7C8A3F

#7C8A3F is a mid, moderate yellow-green. Relative luminance 0.228; OKLCH L 60.5% C 0.101 H 118.3°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7C8A3F
RGBrgb(124, 138, 63)
HSLhsl(71, 37%, 39%)
HSVhsv(71, 54%, 54%)
CMYKcmyk(10.1%, 0%, 54.3%, 45.9%)
CIE-LABlab(54.89, -16.84, 37.96)
CIE-LCHlch(54.89, 41.53, 113.93°)
OKLaboklab(60.53% -0.0481 0.0893)
OKLCHoklch(60.53% 0.101 118.3)
XYZxyz(18.2981, 22.8211, 8.1426)
Luminance0.2282 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A3F #4D3F8A
analogous
#8A733F #7C8A3F #578A3F
triadic
#7C8A3F #3F7C8A #8A3F7C
tetradic
#7C8A3F #3F8A73 #4D3F8A #8A3F57
square
#7C8A3F #3F8A73 #4D3F8A #8A3F57
split-complementary
#7C8A3F #3F578A #733F8A
monochromatic
#303619 #56602C #7C8A3F #A0B155 #B8C57F

Accessibility & contrast

On white

3.77
#7C8A3F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7C8A3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A3F
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A3F#FFFFFF#000000##000000
##7C8A3F1.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#928338
Deuteranopia (green-blind)
#918443
Tritanopia (blue-blind)
#828379
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a3f;
/* rgb */ color: rgb(124, 138, 63);
/* oklch */ color: oklch(60.5% 0.101 118.3);
Tailwind
colors: {
  custom: {
    50: '#a3ac76',
    500: '#7c8a3f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a3f;
$custom-light: #a3ac76;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a3f",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 63
  },
  "hsl": {
    "h": 71.2,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.60526,
    "c": 0.10146,
    "h": 118.3
  },
  "luminance": 0.22821
}

Semantic roles & 50–950 ramp

primary
#7C8A3F
secondary
#8176AF
accent
#5BCD70
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7C8A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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