#7C981A#7C981A

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

Color values

HEX#7C981A
RGBrgb(124, 152, 26)
HSLhsl(73, 71%, 35%)
HSVhsv(73, 83%, 60%)
CMYKcmyk(18.4%, 0%, 82.9%, 40.4%)
CIE-LABlab(58.80, -26.39, 56.81)
CIE-LCHlch(58.80, 62.64, 114.92°)
OKLaboklab(63.59% -0.0781 0.1237)
OKLCHoklch(63.59% 0.146 122.3)
XYZxyz(19.7272, 26.8161, 5.1138)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C981A #361A98
analogous
#98751A #7C981A #3D981A
triadic
#7C981A #1A7C98 #981A7C
tetradic
#7C981A #1A9875 #361A98 #981A3D
square
#7C981A #1A9875 #361A98 #981A3D
split-complementary
#7C981A #1A3D98 #751A98
monochromatic
#272F08 #516411 #7C981A #A7CC23 #BFE04C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C981A#FFFFFF#000000##000000
##7C981A1.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)
#A28E00
Deuteranopia (green-blind)
#9E8D28
Tritanopia (blue-blind)
#839081
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7c981a;
/* rgb */ color: rgb(124, 152, 26);
/* oklch */ color: oklch(63.6% 0.146 122.3);
Tailwind
colors: {
  custom: {
    50: '#a6b664',
    500: '#7c981a',
    950: '#000000',
  },
}
SCSS
$custom: #7c981a;
$custom-light: #a6b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7c981a",
  "rgb": {
    "r": 124,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 73.333,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.6359,
    "c": 0.14628,
    "h": 122.3
  },
  "luminance": 0.26816
}

Semantic roles & 50–950 ramp

primary
#7C981A
secondary
#664BC2
accent
#3AEE62
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7C981A

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

Preview Lab → · Contrast checker → · Palette generator →

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