#7C8D2A#7C8D2A

#7C8D2A is a mid, vivid yellow-green. Relative luminance 0.235; OKLCH L 61.0% C 0.124 H 118.7°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7C8D2A
RGBrgb(124, 141, 42)
HSLhsl(70, 54%, 36%)
HSVhsv(70, 70%, 55%)
CMYKcmyk(12.1%, 0%, 70.2%, 44.7%)
CIE-LABlab(55.59, -20.08, 48.32)
CIE-LCHlch(55.59, 52.33, 112.56°)
OKLaboklab(61.02% -0.0594 0.1085)
OKLCHoklch(61.02% 0.124 118.7)
XYZxyz(18.2553, 23.5021, 5.7647)
Luminance0.2350 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D2A #3B2A8D
analogous
#8D6C2A #7C8D2A #4A8D2A
triadic
#7C8D2A #2A7C8D #8D2A7C
tetradic
#7C8D2A #2A8D6C #3B2A8D #8D2A4A
square
#7C8D2A #2A8D6C #3B2A8D #8D2A4A
split-complementary
#7C8D2A #2A4A8D #6C2A8D
monochromatic
#292F0E #535E1C #7C8D2A #A5BC38 #BDD061

Accessibility & contrast

On white

3.68
#7C8D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#7C8D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D2A
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D2A#FFFFFF#000000##000000
##7C8D2A1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#96851B
Deuteranopia (green-blind)
#948632
Tritanopia (blue-blind)
#838579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d2a;
/* rgb */ color: rgb(124, 141, 42);
/* oklch */ color: oklch(61.0% 0.124 118.7);
Tailwind
colors: {
  custom: {
    50: '#a5ae6a',
    500: '#7c8d2a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d2a;
$custom-light: #a5ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d2a",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 70.303,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61024,
    "c": 0.12371,
    "h": 118.7
  },
  "luminance": 0.23502
}

Semantic roles & 50–950 ramp

primary
#7C8D2A
secondary
#6C5DB6
accent
#4ADD64
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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