#7BA51F#7BA51F

#7BA51F is a light, vivid yellow-green. Relative luminance 0.312; OKLCH L 66.7% C 0.160 H 126.4°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7BA51F
RGBrgb(123, 165, 31)
HSLhsl(79, 68%, 38%)
HSVhsv(79, 81%, 65%)
CMYKcmyk(25.5%, 0%, 81.2%, 35.3%)
CIE-LABlab(62.69, -32.80, 58.86)
CIE-LCHlch(62.69, 67.38, 119.13°)
OKLaboklab(66.73% -0.0951 0.1289)
OKLCHoklch(66.73% 0.16 126.4)
XYZxyz(21.8710, 31.2198, 6.1698)
Luminance0.3122 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7BA51F #491FA5
analogous
#A58C1F #7BA51F #38A51F
triadic
#7BA51F #1F7BA5 #A51F7B
tetradic
#7BA51F #1FA58C #491FA5 #A51F38
square
#7BA51F #1FA58C #491FA5 #A51F38
split-complementary
#7BA51F #1F38A5 #8C1FA5
monochromatic
#2E3E0C #557115 #7BA51F #A1D72A #B8E15E

Accessibility & contrast

On white

2.90
#7BA51F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.24
#7BA51F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7BA51F
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7BA51F#FFFFFF#000000##000000
##7BA51F1.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9900
Deuteranopia (green-blind)
#A8972E
Tritanopia (blue-blind)
#809D8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7ba51f;
/* rgb */ color: rgb(123, 165, 31);
/* oklch */ color: oklch(66.7% 0.160 126.4);
Tailwind
colors: {
  custom: {
    50: '#a5c068',
    500: '#7ba51f',
    950: '#000000',
  },
}
SCSS
$custom: #7ba51f;
$custom-light: #a5c068;
$custom-dark: #000000;
JSON
{
  "hex": "#7ba51f",
  "rgb": {
    "r": 123,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 78.806,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.6673,
    "c": 0.16019,
    "h": 126.4
  },
  "luminance": 0.3122
}

Semantic roles & 50–950 ramp

primary
#7BA51F
secondary
#7C5BC5
accent
#3DEB73
background
#FAFBF6
surface
#F4F7EB
border
#CED0C6
text
#101207
muted
#7F817A

Preview Lab

Preview with #7BA51F

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

Preview Lab → · Contrast checker → · Palette generator →

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