#7C8F2A#7C8F2A

#7C8F2A is a mid, vivid yellow-green. Relative luminance 0.241; OKLCH L 61.5% C 0.126 H 119.5°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7C8F2A
RGBrgb(124, 143, 42)
HSLhsl(71, 55%, 36%)
HSVhsv(71, 71%, 56%)
CMYKcmyk(13.3%, 0%, 70.6%, 43.9%)
CIE-LABlab(56.19, -21.10, 48.93)
CIE-LCHlch(56.19, 53.29, 113.33°)
OKLaboklab(61.51% -0.0622 0.1098)
OKLCHoklch(61.51% 0.126 119.5)
XYZxyz(18.5529, 24.0973, 5.8639)
Luminance0.2410 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F2A #3D2A8F
analogous
#8F702A #7C8F2A #4A8F2A
triadic
#7C8F2A #2A7C8F #8F2A7C
tetradic
#7C8F2A #2A8F70 #3D2A8F #8F2A4A
square
#7C8F2A #2A8F70 #3D2A8F #8F2A4A
split-complementary
#7C8F2A #2A4A8F #702A8F
monochromatic
#2A300E #53601C #7C8F2A #A5BE38 #BCD162

Accessibility & contrast

On white

3.61
#7C8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#7C8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F2A
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F2A#FFFFFF#000000##000000
##7C8F2A1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8f2a;
/* rgb */ color: rgb(124, 143, 42);
/* oklch */ color: oklch(61.5% 0.126 119.5);
Tailwind
colors: {
  custom: {
    50: '#a5af6a',
    500: '#7c8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f2a;
$custom-light: #a5af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f2a",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 71.287,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61506,
    "c": 0.1262,
    "h": 119.5
  },
  "luminance": 0.24097
}

Semantic roles & 50–950 ramp

primary
#7C8F2A
secondary
#6F5EB7
accent
#4ADE66
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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