#7C8A42#7C8A42

#7C8A42 is a mid, moderate yellow-green. Relative luminance 0.229; OKLCH L 60.6% C 0.098 H 118.5°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7C8A42
RGBrgb(124, 138, 66)
HSLhsl(72, 35%, 40%)
HSVhsv(72, 52%, 54%)
CMYKcmyk(10.1%, 0%, 52.2%, 45.9%)
CIE-LABlab(54.92, -16.54, 36.48)
CIE-LCHlch(54.92, 40.06, 114.39°)
OKLaboklab(60.57% -0.047 0.0864)
OKLCHoklch(60.57% 0.098 118.5)
XYZxyz(18.3842, 22.8555, 8.5963)
Luminance0.2286 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A42 #50428A
analogous
#8A7442 #7C8A42 #588A42
triadic
#7C8A42 #427C8A #8A427C
tetradic
#7C8A42 #428A74 #50428A #8A4258
square
#7C8A42 #428A74 #50428A #8A4258
split-complementary
#7C8A42 #42588A #74428A
monochromatic
#32371A #57612E #7C8A42 #9FB059 #B7C483

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A42#FFFFFF#000000##000000
##7C8A421.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)
#92833B
Deuteranopia (green-blind)
#908446
Tritanopia (blue-blind)
#82837A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a42;
/* rgb */ color: rgb(124, 138, 66);
/* oklch */ color: oklch(60.6% 0.098 118.5);
Tailwind
colors: {
  custom: {
    50: '#a3ac78',
    500: '#7c8a42',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a42;
$custom-light: #a3ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a42",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 71.667,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.60566,
    "c": 0.09835,
    "h": 118.5
  },
  "luminance": 0.22855
}

Semantic roles & 50–950 ramp

primary
#7C8A42
secondary
#8479AE
accent
#5CCB72
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7C8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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