#7C8E2A#7C8E2A

#7C8E2A is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.3% C 0.125 H 119.1°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7C8E2A
RGBrgb(124, 142, 42)
HSLhsl(71, 54%, 36%)
HSVhsv(71, 70%, 56%)
CMYKcmyk(12.7%, 0%, 70.4%, 44.3%)
CIE-LABlab(55.89, -20.59, 48.63)
CIE-LCHlch(55.89, 52.81, 112.95°)
OKLaboklab(61.27% -0.0608 0.1092)
OKLCHoklch(61.27% 0.125 119.1)
XYZxyz(18.4034, 23.7984, 5.8141)
Luminance0.2380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E2A #3C2A8E
analogous
#8E6E2A #7C8E2A #4A8E2A
triadic
#7C8E2A #2A7C8E #8E2A7C
tetradic
#7C8E2A #2A8E6E #3C2A8E #8E2A4A
square
#7C8E2A #2A8E6E #3C2A8E #8E2A4A
split-complementary
#7C8E2A #2A4A8E #6E2A8E
monochromatic
#2A300E #535F1C #7C8E2A #A5BD38 #BDD162

Accessibility & contrast

On white

3.65
#7C8E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#7C8E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E2A
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E2A#FFFFFF#000000##000000
##7C8E2A1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861A
Deuteranopia (green-blind)
#958632
Tritanopia (blue-blind)
#83867A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e2a;
/* rgb */ color: rgb(124, 142, 42);
/* oklch */ color: oklch(61.3% 0.125 119.1);
Tailwind
colors: {
  custom: {
    50: '#a5af6a',
    500: '#7c8e2a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e2a;
$custom-light: #a5af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e2a",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 70.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61265,
    "c": 0.12496,
    "h": 119.1
  },
  "luminance": 0.23798
}

Semantic roles & 50–950 ramp

primary
#7C8E2A
secondary
#6D5DB6
accent
#4ADE65
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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