#7E8A45#7E8A45

#7E8A45 is a mid, moderate yellow-green. Relative luminance 0.230; OKLCH L 60.8% C 0.094 H 117.4°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7E8A45
RGBrgb(126, 138, 69)
HSLhsl(70, 33%, 41%)
HSVhsv(70, 50%, 54%)
CMYKcmyk(8.7%, 0%, 50%, 45.9%)
CIE-LABlab(55.12, -15.38, 35.21)
CIE-LCHlch(55.12, 38.42, 113.60°)
OKLaboklab(60.77% -0.0435 0.0838)
OKLCHoklch(60.77% 0.094 117.4)
XYZxyz(18.7670, 23.0424, 9.0880)
Luminance0.2304 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A45 #51458A
analogous
#8A7345 #7E8A45 #5B8A45
triadic
#7E8A45 #457E8A #8A457E
tetradic
#7E8A45 #458A73 #51458A #8A455B
square
#7E8A45 #458A73 #51458A #8A455B
split-complementary
#7E8A45 #455B8A #73458A
monochromatic
#33381C #596131 #7E8A45 #A0AE5E #B8C387

Accessibility & contrast

On white

3.74
#7E8A45 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#7E8A45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A45
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A45#FFFFFF#000000##000000
##7E8A451.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#92843F
Deuteranopia (green-blind)
#918449
Tritanopia (blue-blind)
#84847A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8a45;
/* rgb */ color: rgb(126, 138, 69);
/* oklch */ color: oklch(60.8% 0.094 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac7a',
    500: '#7e8a45',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a45;
$custom-light: #a5ac7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a45",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 69
  },
  "hsl": {
    "h": 70.435,
    "s": 33.333,
    "l": 40.588
  },
  "oklch": {
    "l": 0.60772,
    "c": 0.09447,
    "h": 117.4
  },
  "luminance": 0.23042
}

Semantic roles & 50–950 ramp

primary
#7E8A45
secondary
#857DAE
accent
#5EC971
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7E8A45

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

Preview Lab → · Contrast checker → · Palette generator →

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