#7B971C#7B971C

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

Color values

HEX#7B971C
RGBrgb(123, 151, 28)
HSLhsl(74, 69%, 35%)
HSVhsv(74, 81%, 59%)
CMYKcmyk(18.5%, 0%, 81.5%, 40.8%)
CIE-LABlab(58.44, -26.25, 55.90)
CIE-LCHlch(58.44, 61.76, 115.15°)
OKLaboklab(63.28% -0.0775 0.1221)
OKLCHoklch(63.28% 0.145 122.4)
XYZxyz(19.4449, 26.4279, 5.1751)
Luminance0.2643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B971C #381C97
analogous
#97761C #7B971C #3D971C
triadic
#7B971C #1C7B97 #971C7B
tetradic
#7B971C #1C9776 #381C97 #971C3D
square
#7B971C #1C9776 #381C97 #971C3D
split-complementary
#7B971C #1C3D97 #761C97
monochromatic
#273009 #516312 #7B971C #A5CB26 #BEDE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B971C#FFFFFF#000000##000000
##7B971C1.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)
#9D8C29
Tritanopia (blue-blind)
#828F81
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #7b971c;
/* rgb */ color: rgb(123, 151, 28);
/* oklch */ color: oklch(63.3% 0.145 122.4);
Tailwind
colors: {
  custom: {
    50: '#a5b564',
    500: '#7b971c',
    950: '#000000',
  },
}
SCSS
$custom: #7b971c;
$custom-light: #a5b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7b971c",
  "rgb": {
    "r": 123,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 73.659,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63282,
    "c": 0.14464,
    "h": 122.4
  },
  "luminance": 0.26428
}

Semantic roles & 50–950 ramp

primary
#7B971C
secondary
#684EC1
accent
#3CEC64
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B971C

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

Preview Lab → · Contrast checker → · Palette generator →

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