#7E8940#7E8940

#7E8940 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.5% C 0.098 H 116.5°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7E8940
RGBrgb(126, 137, 64)
HSLhsl(69, 36%, 39%)
HSVhsv(69, 53%, 54%)
CMYKcmyk(8%, 0%, 53.3%, 46.3%)
CIE-LABlab(54.76, -15.36, 37.34)
CIE-LCHlch(54.76, 40.38, 112.36°)
OKLaboklab(60.47% -0.044 0.0881)
OKLCHoklch(60.47% 0.098 116.5)
XYZxyz(18.4755, 22.6973, 8.2572)
Luminance0.2270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8940 #4B4089
analogous
#897040 #7E8940 #5A8940
triadic
#7E8940 #407E89 #89407E
tetradic
#7E8940 #408970 #4B4089 #89405A
square
#7E8940 #408970 #4B4089 #89405A
split-complementary
#7E8940 #405A89 #704089
monochromatic
#313619 #585F2D #7E8940 #A3B056 #B9C480

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8940#FFFFFF#000000##000000
##7E89401.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)
#918339
Deuteranopia (green-blind)
#908444
Tritanopia (blue-blind)
#858279
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8940;
/* rgb */ color: rgb(126, 137, 64);
/* oklch */ color: oklch(60.5% 0.098 116.5);
Tailwind
colors: {
  custom: {
    50: '#a5ab77',
    500: '#7e8940',
    950: '#000000',
  },
}
SCSS
$custom: #7e8940;
$custom-light: #a5ab77;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8940",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 64
  },
  "hsl": {
    "h": 69.041,
    "s": 36.318,
    "l": 39.412
  },
  "oklch": {
    "l": 0.60466,
    "c": 0.09841,
    "h": 116.5
  },
  "luminance": 0.22697
}

Semantic roles & 50–950 ramp

primary
#7E8940
secondary
#7F77AE
accent
#5BCC6C
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7E8940

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

Preview Lab → · Contrast checker → · Palette generator →

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