#7B971F#7B971F

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

Color values

HEX#7B971F
RGBrgb(123, 151, 31)
HSLhsl(74, 66%, 36%)
HSVhsv(74, 79%, 59%)
CMYKcmyk(18.5%, 0%, 79.5%, 40.8%)
CIE-LABlab(58.46, -26.12, 55.01)
CIE-LCHlch(58.46, 60.90, 115.40°)
OKLaboklab(63.3% -0.0769 0.1208)
OKLCHoklch(63.3% 0.143 122.5)
XYZxyz(19.4826, 26.4430, 5.3737)
Luminance0.2644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B971F #3B1F97
analogous
#97771F #7B971F #3F971F
triadic
#7B971F #1F7B97 #971F7B
tetradic
#7B971F #1F9777 #3B1F97 #971F3F
square
#7B971F #1F9777 #3B1F97 #971F3F
split-complementary
#7B971F #1F3F97 #771F97
monochromatic
#28310A #526415 #7B971F #A4CA29 #BCDC54

Accessibility & contrast

On white

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

On black

6.29
#7B971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B971F
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B971F#FFFFFF#000000##000000
##7B971F1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b971f;
/* rgb */ color: rgb(123, 151, 31);
/* oklch */ color: oklch(63.3% 0.143 122.5);
Tailwind
colors: {
  custom: {
    50: '#a5b566',
    500: '#7b971f',
    950: '#000000',
  },
}
SCSS
$custom: #7b971f;
$custom-light: #a5b566;
$custom-dark: #000000;
JSON
{
  "hex": "#7b971f",
  "rgb": {
    "r": 123,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 74,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63298,
    "c": 0.14317,
    "h": 122.5
  },
  "luminance": 0.26443
}

Semantic roles & 50–950 ramp

primary
#7B971F
secondary
#6C52BF
accent
#3FE967
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B971F

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

Preview Lab → · Contrast checker → · Palette generator →

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