#7C971B#7C971B

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

Color values

HEX#7C971B
RGBrgb(124, 151, 27)
HSLhsl(73, 70%, 35%)
HSVhsv(73, 82%, 59%)
CMYKcmyk(17.9%, 0%, 82.1%, 40.8%)
CIE-LABlab(58.51, -25.86, 56.27)
CIE-LCHlch(58.51, 61.93, 114.69°)
OKLaboklab(63.35% -0.0766 0.1227)
OKLCHoklch(63.35% 0.145 122)
XYZxyz(19.5769, 26.4974, 5.1199)
Luminance0.2650 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C971B #361B97
analogous
#97741B #7C971B #3E971B
triadic
#7C971B #1B7C97 #971B7C
tetradic
#7C971B #1B9774 #361B97 #971B3E
square
#7C971B #1B9774 #361B97 #971B3E
split-complementary
#7C971B #1B3E97 #741B97
monochromatic
#272F08 #516312 #7C971B #A7CB24 #BFDF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C971B#FFFFFF#000000##000000
##7C971B1.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)
#A18D00
Deuteranopia (green-blind)
#9D8D28
Tritanopia (blue-blind)
#838F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7c971b;
/* rgb */ color: rgb(124, 151, 27);
/* oklch */ color: oklch(63.4% 0.145 122.0);
Tailwind
colors: {
  custom: {
    50: '#a6b564',
    500: '#7c971b',
    950: '#000000',
  },
}
SCSS
$custom: #7c971b;
$custom-light: #a6b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7c971b",
  "rgb": {
    "r": 124,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 73.065,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63351,
    "c": 0.14464,
    "h": 122
  },
  "luminance": 0.26497
}

Semantic roles & 50–950 ramp

primary
#7C971B
secondary
#664CC1
accent
#3BEC62
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7C971B

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

Preview Lab → · Contrast checker → · Palette generator →

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