#7BA22A#7BA22A

#7BA22A is a light, vivid yellow-green. Relative luminance 0.302; OKLCH L 66.1% C 0.151 H 126.2°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7BA22A
RGBrgb(123, 162, 42)
HSLhsl(80, 59%, 40%)
HSVhsv(80, 74%, 64%)
CMYKcmyk(24.1%, 0%, 74.1%, 36.5%)
CIE-LABlab(61.84, -30.84, 54.51)
CIE-LCHlch(61.84, 62.63, 119.50°)
OKLaboklab(66.06% -0.0889 0.1216)
OKLCHoklch(66.06% 0.151 126.2)
XYZxyz(21.5067, 30.2184, 6.8897)
Luminance0.3022 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7BA22A #512AA2
analogous
#A28D2A #7BA22A #3FA22A
triadic
#7BA22A #2A7BA2 #A22A7B
tetradic
#7BA22A #2AA28D #512AA2 #A22A3F
square
#7BA22A #2AA28D #512AA2 #A22A3F
split-complementary
#7BA22A #2A3FA2 #8D2AA2
monochromatic
#314111 #56711D #7BA22A #9ECD3D #B6D96D

Accessibility & contrast

On white

2.98
#7BA22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#7BA22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7BA22A
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7BA22A#FFFFFF#000000##000000
##7BA22A1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9712
Deuteranopia (green-blind)
#A59535
Tritanopia (blue-blind)
#809A8B
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #7ba22a;
/* rgb */ color: rgb(123, 162, 42);
/* oklch */ color: oklch(66.1% 0.151 126.2);
Tailwind
colors: {
  custom: {
    50: '#a5bd6c',
    500: '#7ba22a',
    950: '#000000',
  },
}
SCSS
$custom: #7ba22a;
$custom-light: #a5bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7ba22a",
  "rgb": {
    "r": 123,
    "g": 162,
    "b": 42
  },
  "hsl": {
    "h": 79.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.66059,
    "c": 0.15062,
    "h": 126.2
  },
  "luminance": 0.30219
}

Semantic roles & 50–950 ramp

primary
#7BA22A
secondary
#8468C0
accent
#46E279
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7BA22A

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

Preview Lab → · Contrast checker → · Palette generator →

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