#7E8F2A#7E8F2A

#7E8F2A is a mid, vivid yellow-green. Relative luminance 0.242; OKLCH L 61.7% C 0.125 H 118.5°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7E8F2A
RGBrgb(126, 143, 42)
HSLhsl(70, 55%, 36%)
HSVhsv(70, 71%, 56%)
CMYKcmyk(11.9%, 0%, 70.6%, 43.9%)
CIE-LABlab(56.34, -20.23, 49.13)
CIE-LCHlch(56.34, 53.13, 112.38°)
OKLaboklab(61.66% -0.0599 0.1102)
OKLCHoklch(61.66% 0.125 118.5)
XYZxyz(18.8449, 24.2479, 5.8776)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F2A #3B2A8F
analogous
#8F6E2A #7E8F2A #4C8F2A
triadic
#7E8F2A #2A7E8F #8F2A7E
tetradic
#7E8F2A #2A8F6E #3B2A8F #8F2A4C
square
#7E8F2A #2A8F6E #3B2A8F #8F2A4C
split-complementary
#7E8F2A #2A4C8F #6E2A8F
monochromatic
#2B300E #54601C #7E8F2A #A8BE38 #BED162

Accessibility & contrast

On white

3.59
#7E8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#7E8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8F2A
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8F2A#FFFFFF#000000##000000
##7E8F2A1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871A
Deuteranopia (green-blind)
#978832
Tritanopia (blue-blind)
#86877B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f2a;
/* rgb */ color: rgb(126, 143, 42);
/* oklch */ color: oklch(61.7% 0.125 118.5);
Tailwind
colors: {
  custom: {
    50: '#a6af6a',
    500: '#7e8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f2a;
$custom-light: #a6af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f2a",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 70.099,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61664,
    "c": 0.12542,
    "h": 118.5
  },
  "luminance": 0.24248
}

Semantic roles & 50–950 ramp

primary
#7E8F2A
secondary
#6D5EB7
accent
#4ADE63
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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