#7C981F#7C981F

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

Color values

HEX#7C981F
RGBrgb(124, 152, 31)
HSLhsl(74, 66%, 36%)
HSVhsv(74, 80%, 60%)
CMYKcmyk(18.4%, 0%, 79.6%, 40.4%)
CIE-LABlab(58.83, -26.19, 55.37)
CIE-LCHlch(58.83, 61.25, 115.31°)
OKLaboklab(63.62% -0.0771 0.1215)
OKLCHoklch(63.62% 0.144 122.4)
XYZxyz(19.7880, 26.8404, 5.4343)
Luminance0.2684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C981F #3B1F98
analogous
#98771F #7C981F #40981F
triadic
#7C981F #1F7C98 #981F7C
tetradic
#7C981F #1F9877 #3B1F98 #981F40
square
#7C981F #1F9877 #3B1F98 #981F40
split-complementary
#7C981F #1F4098 #771F98
monochromatic
#29320A #536515 #7C981F #A5CB29 #BDDC55

Accessibility & contrast

On white

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

On black

6.37
#7C981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C981F
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C981F#FFFFFF#000000##000000
##7C981F1.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c981f;
/* rgb */ color: rgb(124, 152, 31);
/* oklch */ color: oklch(63.6% 0.144 122.4);
Tailwind
colors: {
  custom: {
    50: '#a5b666',
    500: '#7c981f',
    950: '#000000',
  },
}
SCSS
$custom: #7c981f;
$custom-light: #a5b666;
$custom-dark: #000000;
JSON
{
  "hex": "#7c981f",
  "rgb": {
    "r": 124,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 73.884,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63615,
    "c": 0.14393,
    "h": 122.4
  },
  "luminance": 0.2684
}

Semantic roles & 50–950 ramp

primary
#7C981F
secondary
#6C53C0
accent
#3FE966
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7C981F

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

Preview Lab → · Contrast checker → · Palette generator →

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