#7C8A40#7C8A40

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

Color values

HEX#7C8A40
RGBrgb(124, 138, 64)
HSLhsl(71, 37%, 40%)
HSVhsv(71, 54%, 54%)
CMYKcmyk(10.1%, 0%, 53.6%, 45.9%)
CIE-LABlab(54.90, -16.74, 37.47)
CIE-LCHlch(54.90, 41.04, 114.08°)
OKLaboklab(60.54% -0.0477 0.0884)
OKLCHoklch(60.54% 0.1 118.4)
XYZxyz(18.3263, 22.8323, 8.2911)
Luminance0.2283 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A40 #4E408A
analogous
#8A7340 #7C8A40 #578A40
triadic
#7C8A40 #407C8A #8A407C
tetradic
#7C8A40 #408A73 #4E408A #8A4057
square
#7C8A40 #408A73 #4E408A #8A4057
split-complementary
#7C8A40 #40578A #73408A
monochromatic
#313619 #56602D #7C8A40 #A0B156 #B7C480

Accessibility & contrast

On white

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

On black

5.57
#7C8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A40
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A40#FFFFFF#000000##000000
##7C8A401.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8a40;
/* rgb */ color: rgb(124, 138, 64);
/* oklch */ color: oklch(60.5% 0.100 118.4);
Tailwind
colors: {
  custom: {
    50: '#a3ac77',
    500: '#7c8a40',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a40;
$custom-light: #a3ac77;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a40",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 71.351,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.60539,
    "c": 0.10044,
    "h": 118.4
  },
  "luminance": 0.22832
}

Semantic roles & 50–950 ramp

primary
#7C8A40
secondary
#8277AF
accent
#5BCD71
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7C8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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