#7B971A#7B971A

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

Color values

HEX#7B971A
RGBrgb(123, 151, 26)
HSLhsl(73, 71%, 35%)
HSVhsv(73, 83%, 59%)
CMYKcmyk(18.5%, 0%, 82.8%, 40.8%)
CIE-LABlab(58.43, -26.33, 56.46)
CIE-LCHlch(58.43, 62.30, 115.00°)
OKLaboklab(63.27% -0.0778 0.123)
OKLCHoklch(63.27% 0.146 122.3)
XYZxyz(19.4218, 26.4187, 5.0532)
Luminance0.2642 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B971A #361A97
analogous
#97751A #7B971A #3D971A
triadic
#7B971A #1A7B97 #971A7B
tetradic
#7B971A #1A9775 #361A97 #971A3D
square
#7B971A #1A9775 #361A97 #971A3D
split-complementary
#7B971A #1A3D97 #751A97
monochromatic
#262F08 #506311 #7B971A #A6CB23 #BFE04B

Accessibility & contrast

On white

3.34
#7B971A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#7B971A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B971A
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B971A#FFFFFF#000000##000000
##7B971A1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D00
Deuteranopia (green-blind)
#9D8C28
Tritanopia (blue-blind)
#828F81
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #7b971a;
/* rgb */ color: rgb(123, 151, 26);
/* oklch */ color: oklch(63.3% 0.146 122.3);
Tailwind
colors: {
  custom: {
    50: '#a5b564',
    500: '#7b971a',
    950: '#000000',
  },
}
SCSS
$custom: #7b971a;
$custom-light: #a5b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7b971a",
  "rgb": {
    "r": 123,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 73.44,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.63272,
    "c": 0.14555,
    "h": 122.3
  },
  "luminance": 0.26419
}

Semantic roles & 50–950 ramp

primary
#7B971A
secondary
#654BC2
accent
#3AED63
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B971A

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

Preview Lab → · Contrast checker → · Palette generator →

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