#7E8A42#7E8A42

#7E8A42 is a mid, moderate yellow-green. Relative luminance 0.230; OKLCH L 60.7% C 0.098 H 117.2°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E8A42
RGBrgb(126, 138, 66)
HSLhsl(70, 35%, 40%)
HSVhsv(70, 52%, 54%)
CMYKcmyk(8.7%, 0%, 52.2%, 45.9%)
CIE-LABlab(55.08, -15.69, 36.71)
CIE-LCHlch(55.08, 39.92, 113.14°)
OKLaboklab(60.73% -0.0447 0.0869)
OKLCHoklch(60.73% 0.098 117.2)
XYZxyz(18.6763, 23.0061, 8.6099)
Luminance0.2301 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A42 #4E428A
analogous
#8A7242 #7E8A42 #5A8A42
triadic
#7E8A42 #427E8A #8A427E
tetradic
#7E8A42 #428A72 #4E428A #8A425A
square
#7E8A42 #428A72 #4E428A #8A425A
split-complementary
#7E8A42 #425A8A #72428A
monochromatic
#32371A #58612E #7E8A42 #A1B059 #B9C483

Accessibility & contrast

On white

3.75
#7E8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A42
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A42#FFFFFF#000000##000000
##7E8A421.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92843B
Deuteranopia (green-blind)
#918446
Tritanopia (blue-blind)
#85837A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8a42;
/* rgb */ color: rgb(126, 138, 66);
/* oklch */ color: oklch(60.7% 0.098 117.2);
Tailwind
colors: {
  custom: {
    50: '#a5ac78',
    500: '#7e8a42',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a42;
$custom-light: #a5ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a42",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 70,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.6073,
    "c": 0.09769,
    "h": 117.2
  },
  "luminance": 0.23006
}

Semantic roles & 50–950 ramp

primary
#7E8A42
secondary
#8279AE
accent
#5CCB6F
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7E8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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