#7A8A42#7A8A42

#7A8A42 is a mid, moderate yellow-green. Relative luminance 0.227; OKLCH L 60.4% C 0.099 H 119.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7A8A42
RGBrgb(122, 138, 66)
HSLhsl(73, 35%, 40%)
HSVhsv(73, 52%, 54%)
CMYKcmyk(11.6%, 0%, 52.2%, 45.9%)
CIE-LABlab(54.77, -17.39, 36.26)
CIE-LCHlch(54.77, 40.22, 115.62°)
OKLaboklab(60.41% -0.0493 0.086)
OKLCHoklch(60.41% 0.099 119.8)
XYZxyz(18.0980, 22.7079, 8.5828)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A42 #52428A
analogous
#8A7642 #7A8A42 #568A42
triadic
#7A8A42 #427A8A #8A427A
tetradic
#7A8A42 #428A76 #52428A #8A4256
square
#7A8A42 #428A76 #52428A #8A4256
split-complementary
#7A8A42 #42568A #76428A
monochromatic
#31371A #55612E #7A8A42 #9DB059 #B5C483

Accessibility & contrast

On white

3.79
#7A8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7A8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8A42
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8A42#FFFFFF#000000##000000
##7A8A421.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#92833B
Deuteranopia (green-blind)
#908346
Tritanopia (blue-blind)
#80847A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7a8a42;
/* rgb */ color: rgb(122, 138, 66);
/* oklch */ color: oklch(60.4% 0.099 119.8);
Tailwind
colors: {
  custom: {
    50: '#a2ac78',
    500: '#7a8a42',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a42;
$custom-light: #a2ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a42",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 73.333,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.60405,
    "c": 0.09907,
    "h": 119.8
  },
  "luminance": 0.22708
}

Semantic roles & 50–950 ramp

primary
#7A8A42
secondary
#8579AE
accent
#5CCB75
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7A8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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