#7C8D2F#7C8D2F

#7C8D2F is a mid, moderate yellow-green. Relative luminance 0.235; OKLCH L 61.1% C 0.120 H 118.9°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7C8D2F
RGBrgb(124, 141, 47)
HSLhsl(71, 50%, 37%)
HSVhsv(71, 67%, 55%)
CMYKcmyk(12.1%, 0%, 66.7%, 44.7%)
CIE-LABlab(55.62, -19.74, 46.28)
CIE-LCHlch(55.62, 50.31, 113.10°)
OKLaboklab(61.07% -0.0579 0.105)
OKLCHoklch(61.07% 0.12 118.9)
XYZxyz(18.3505, 23.5402, 6.2658)
Luminance0.2354 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D2F #402F8D
analogous
#8D6F2F #7C8D2F #4D8D2F
triadic
#7C8D2F #2F7C8D #8D2F7C
tetradic
#7C8D2F #2F8D6F #402F8D #8D2F4D
square
#7C8D2F #2F8D6F #402F8D #8D2F4D
split-complementary
#7C8D2F #2F4D8D #6F2F8D
monochromatic
#2B3110 #545F20 #7C8D2F #A4BB3E #BBCD69

Accessibility & contrast

On white

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

On black

5.71
#7C8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D2F
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D2F#FFFFFF#000000##000000
##7C8D2F1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#968522
Deuteranopia (green-blind)
#948636
Tritanopia (blue-blind)
#83857A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d2f;
/* rgb */ color: rgb(124, 141, 47);
/* oklch */ color: oklch(61.1% 0.120 118.9);
Tailwind
colors: {
  custom: {
    50: '#a4ae6d',
    500: '#7c8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d2f;
$custom-light: #a4ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d2f",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 70.851,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61067,
    "c": 0.11994,
    "h": 118.9
  },
  "luminance": 0.2354
}

Semantic roles & 50–950 ramp

primary
#7C8D2F
secondary
#7264B4
accent
#4EDA67
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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