#7C971F#7C971F

#7C971F is a light, vivid yellow-green. Relative luminance 0.265; OKLCH L 63.4% C 0.143 H 122.1°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7C971F
RGBrgb(124, 151, 31)
HSLhsl(74, 66%, 36%)
HSVhsv(74, 79%, 59%)
CMYKcmyk(17.9%, 0%, 79.5%, 40.8%)
CIE-LABlab(58.52, -25.70, 55.10)
CIE-LCHlch(58.52, 60.80, 115.00°)
OKLaboklab(63.37% -0.0758 0.1209)
OKLCHoklch(63.37% 0.143 122.1)
XYZxyz(19.6264, 26.5172, 5.3804)
Luminance0.2652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C971F #3A1F97
analogous
#97761F #7C971F #40971F
triadic
#7C971F #1F7C97 #971F7C
tetradic
#7C971F #1F9776 #3A1F97 #971F40
square
#7C971F #1F9776 #3A1F97 #971F40
split-complementary
#7C971F #1F4097 #761F97
monochromatic
#29310A #526415 #7C971F #A6CA29 #BDDC54

Accessibility & contrast

On white

3.33
#7C971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#7C971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C971F
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C971F#FFFFFF#000000##000000
##7C971F1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D00
Deuteranopia (green-blind)
#9D8D2B
Tritanopia (blue-blind)
#838F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7c971f;
/* rgb */ color: rgb(124, 151, 31);
/* oklch */ color: oklch(63.4% 0.143 122.1);
Tailwind
colors: {
  custom: {
    50: '#a5b566',
    500: '#7c971f',
    950: '#000000',
  },
}
SCSS
$custom: #7c971f;
$custom-light: #a5b566;
$custom-dark: #000000;
JSON
{
  "hex": "#7c971f",
  "rgb": {
    "r": 124,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 73.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63372,
    "c": 0.14272,
    "h": 122.1
  },
  "luminance": 0.26517
}

Semantic roles & 50–950 ramp

primary
#7C971F
secondary
#6B52BF
accent
#3FE965
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7C971F

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

Preview Lab → · Contrast checker → · Palette generator →

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