#7C981C#7C981C

#7C981C is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.6% C 0.145 H 122.3°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7C981C
RGBrgb(124, 152, 28)
HSLhsl(74, 69%, 35%)
HSVhsv(74, 82%, 60%)
CMYKcmyk(18.4%, 0%, 81.6%, 40.4%)
CIE-LABlab(58.81, -26.31, 56.26)
CIE-LCHlch(58.81, 62.11, 115.07°)
OKLaboklab(63.6% -0.0777 0.1229)
OKLCHoklch(63.6% 0.145 122.3)
XYZxyz(19.7503, 26.8253, 5.2357)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C981C #381C98
analogous
#98761C #7C981C #3E981C
triadic
#7C981C #1C7C98 #981C7C
tetradic
#7C981C #1C9876 #381C98 #981C3E
square
#7C981C #1C9876 #381C98 #981C3E
split-complementary
#7C981C #1C3E98 #761C98
monochromatic
#283109 #526412 #7C981C #A6CC26 #BEDF50

Accessibility & contrast

On white

3.30
#7C981C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#7C981C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C981C
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C981C#FFFFFF#000000##000000
##7C981C1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#9E8D29
Tritanopia (blue-blind)
#839082
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7c981c;
/* rgb */ color: rgb(124, 152, 28);
/* oklch */ color: oklch(63.6% 0.145 122.3);
Tailwind
colors: {
  custom: {
    50: '#a6b665',
    500: '#7c981c',
    950: '#000000',
  },
}
SCSS
$custom: #7c981c;
$custom-light: #a6b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7c981c",
  "rgb": {
    "r": 124,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 73.548,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.636,
    "c": 0.14539,
    "h": 122.3
  },
  "luminance": 0.26825
}

Semantic roles & 50–950 ramp

primary
#7C981C
secondary
#684EC1
accent
#3CEC64
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7C981C

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

Preview Lab → · Contrast checker → · Palette generator →

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