#7E8E2E#7E8E2E

#7E8E2E is a mid, vivid yellow-green. Relative luminance 0.240; OKLCH L 61.5% C 0.121 H 118.2°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7E8E2E
RGBrgb(126, 142, 46)
HSLhsl(70, 51%, 37%)
HSVhsv(70, 68%, 56%)
CMYKcmyk(11.3%, 0%, 67.6%, 44.3%)
CIE-LABlab(56.07, -19.46, 47.21)
CIE-LCHlch(56.07, 51.06, 112.40°)
OKLaboklab(61.46% -0.0574 0.1068)
OKLCHoklch(61.46% 0.121 118.2)
XYZxyz(18.7707, 23.9790, 6.2238)
Luminance0.2398 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E2E #3E2E8E
analogous
#8E6E2E #7E8E2E #4E8E2E
triadic
#7E8E2E #2E7E8E #8E2E7E
tetradic
#7E8E2E #2E8E6E #3E2E8E #8E2E4E
square
#7E8E2E #2E8E6E #3E2E8E #8E2E4E
split-complementary
#7E8E2E #2E4E8E #6E2E8E
monochromatic
#2C3210 #55601F #7E8E2E #A7BC3D #BDCE68

Accessibility & contrast

On white

3.62
#7E8E2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#7E8E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E2E
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E2E#FFFFFF#000000##000000
##7E8E2E1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978621
Deuteranopia (green-blind)
#968735
Tritanopia (blue-blind)
#85867A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e2e;
/* rgb */ color: rgb(126, 142, 46);
/* oklch */ color: oklch(61.5% 0.121 118.2);
Tailwind
colors: {
  custom: {
    50: '#a6af6c',
    500: '#7e8e2e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e2e;
$custom-light: #a6af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e2e",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 46
  },
  "hsl": {
    "h": 70,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61458,
    "c": 0.12122,
    "h": 118.2
  },
  "luminance": 0.23979
}

Semantic roles & 50–950 ramp

primary
#7E8E2E
secondary
#7063B5
accent
#4DDB65
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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