#7E8F2D#7E8F2D

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

Color values

HEX#7E8F2D
RGBrgb(126, 143, 45)
HSLhsl(70, 52%, 37%)
HSVhsv(70, 69%, 56%)
CMYKcmyk(11.9%, 0%, 68.5%, 43.9%)
CIE-LABlab(56.36, -20.04, 47.93)
CIE-LCHlch(56.36, 51.95, 112.69°)
OKLaboklab(61.69% -0.0591 0.1082)
OKLCHoklch(61.69% 0.123 118.7)
XYZxyz(18.9007, 24.2701, 6.1710)
Luminance0.2427 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F2D #3E2D8F
analogous
#8F6F2D #7E8F2D #4D8F2D
triadic
#7E8F2D #2D7E8F #8F2D7E
tetradic
#7E8F2D #2D8F6F #3E2D8F #8F2D4D
square
#7E8F2D #2D8F6F #3E2D8F #8F2D4D
split-complementary
#7E8F2D #2D4D8F #6F2D8F
monochromatic
#2C3210 #55601E #7E8F2D #A7BE3C #BDCF67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8F2D#FFFFFF#000000##000000
##7E8F2D1.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)
#98871F
Deuteranopia (green-blind)
#968834
Tritanopia (blue-blind)
#85877B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f2d;
/* rgb */ color: rgb(126, 143, 45);
/* oklch */ color: oklch(61.7% 0.123 118.7);
Tailwind
colors: {
  custom: {
    50: '#a6af6c',
    500: '#7e8f2d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f2d;
$custom-light: #a6af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f2d",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 70.408,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61689,
    "c": 0.12324,
    "h": 118.7
  },
  "luminance": 0.2427
}

Semantic roles & 50–950 ramp

primary
#7E8F2D
secondary
#7062B6
accent
#4CDC65
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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