#7E9840#7E9840

#7E9840 is a light, moderate yellow-green. Relative luminance 0.273; OKLCH L 64.0% C 0.119 H 123.5°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7E9840
RGBrgb(126, 152, 64)
HSLhsl(78, 41%, 42%)
HSVhsv(78, 58%, 60%)
CMYKcmyk(17.1%, 0%, 57.9%, 40.4%)
CIE-LABlab(59.22, -23.10, 42.50)
CIE-LCHlch(59.22, 48.38, 118.53°)
OKLaboklab(64.05% -0.0657 0.0992)
OKLCHoklch(64.05% 0.119 123.5)
XYZxyz(20.7579, 27.2622, 9.0180)
Luminance0.2726 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9840 #5A4098
analogous
#988640 #7E9840 #529840
triadic
#7E9840 #407E98 #98407E
tetradic
#7E9840 #409886 #5A4098 #984052
square
#7E9840 #409886 #5A4098 #984052
split-complementary
#7E9840 #405298 #864098
monochromatic
#37421C #5A6D2E #7E9840 #9EBA5B #B8CC86

Accessibility & contrast

On white

3.25
#7E9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#7E9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9840
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9840#FFFFFF#000000##000000
##7E98401.003.256.456.45
#FFFFFF3.251.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08F37
Deuteranopia (green-blind)
#9D8E46
Tritanopia (blue-blind)
#839185
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #7e9840;
/* rgb */ color: rgb(126, 152, 64);
/* oklch */ color: oklch(64.0% 0.119 123.5);
Tailwind
colors: {
  custom: {
    50: '#a5b678',
    500: '#7e9840',
    950: '#000000',
  },
}
SCSS
$custom: #7e9840;
$custom-light: #a5b678;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9840",
  "rgb": {
    "r": 126,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 77.727,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.64046,
    "c": 0.11898,
    "h": 123.5
  },
  "luminance": 0.27262
}

Semantic roles & 50–950 ramp

primary
#7E9840
secondary
#8E7DB7
accent
#57D17B
background
#FAFBF7
surface
#F4F6ED
border
#CED0C8
text
#0F1109
muted
#7F807B

Preview Lab

Preview with #7E9840

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

Preview Lab → · Contrast checker → · Palette generator →

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