#7BAB31#7BAB31

#7BAB31 is a light, vivid yellow-green. Relative luminance 0.336; OKLCH L 68.3% C 0.158 H 128.7°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7BAB31
RGBrgb(123, 171, 49)
HSLhsl(84, 55%, 43%)
HSVhsv(84, 71%, 67%)
CMYKcmyk(28.1%, 0%, 71.3%, 32.9%)
CIE-LABlab(64.61, -34.60, 54.68)
CIE-LCHlch(64.61, 64.70, 122.32°)
OKLaboklab(68.32% -0.0986 0.123)
OKLCHoklch(68.32% 0.158 128.7)
XYZxyz(23.2856, 33.5579, 8.1556)
Luminance0.3356 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7BAB31 #6131AB
analogous
#AB9E31 #7BAB31 #3EAB31
triadic
#7BAB31 #317BAB #AB317B
tetradic
#7BAB31 #31AB9E #6131AB #AB313E
square
#7BAB31 #31AB9E #6131AB #AB313E
split-complementary
#7BAB31 #313EAB #9E31AB
monochromatic
#374C16 #597B23 #7BAB31 #9ACC4D #B5DA7D

Accessibility & contrast

On white

2.72
#7BAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#7BAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7BAB31
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7BAB31#FFFFFF#000000##000000
##7BAB311.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F1D
Deuteranopia (green-blind)
#AD9C3C
Tritanopia (blue-blind)
#7FA393
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #7bab31;
/* rgb */ color: rgb(123, 171, 49);
/* oklch */ color: oklch(68.3% 0.158 128.7);
Tailwind
colors: {
  custom: {
    50: '#a5c471',
    500: '#7bab31',
    950: '#000000',
  },
}
SCSS
$custom: #7bab31;
$custom-light: #a5c471;
$custom-dark: #000000;
JSON
{
  "hex": "#7bab31",
  "rgb": {
    "r": 123,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 83.607,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.6832,
    "c": 0.15765,
    "h": 128.7
  },
  "luminance": 0.33559
}

Semantic roles & 50–950 ramp

primary
#7BAB31
secondary
#9475C2
accent
#49DF84
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7BAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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