#7B9731#7B9731

#7B9731 is a light, vivid yellow-green. Relative luminance 0.266; OKLCH L 63.4% C 0.132 H 123.4°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7B9731
RGBrgb(123, 151, 49)
HSLhsl(76, 51%, 39%)
HSVhsv(76, 68%, 59%)
CMYKcmyk(18.5%, 0%, 67.5%, 40.8%)
CIE-LABlab(58.57, -25.07, 48.49)
CIE-LCHlch(58.57, 54.59, 117.35°)
OKLaboklab(63.43% -0.0725 0.11)
OKLCHoklch(63.43% 0.132 123.4)
XYZxyz(19.7896, 26.5658, 6.9903)
Luminance0.2657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9731 #4D3197
analogous
#978031 #7B9731 #489731
triadic
#7B9731 #317B97 #97317B
tetradic
#7B9731 #319780 #4D3197 #973148
square
#7B9731 #319780 #4D3197 #973148
split-complementary
#7B9731 #314897 #803197
monochromatic
#303B13 #556922 #7B9731 #9FC243 #B7D171

Accessibility & contrast

On white

3.33
#7B9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#7B9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B9731
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B9731#FFFFFF#000000##000000
##7B97311.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08E23
Deuteranopia (green-blind)
#9C8D39
Tritanopia (blue-blind)
#819082
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7b9731;
/* rgb */ color: rgb(123, 151, 49);
/* oklch */ color: oklch(63.4% 0.132 123.4);
Tailwind
colors: {
  custom: {
    50: '#a4b56f',
    500: '#7b9731',
    950: '#000000',
  },
}
SCSS
$custom: #7b9731;
$custom-light: #a4b56f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9731",
  "rgb": {
    "r": 123,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 76.471,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63427,
    "c": 0.13172,
    "h": 123.4
  },
  "luminance": 0.26566
}

Semantic roles & 50–950 ramp

primary
#7B9731
secondary
#806BB9
accent
#4DDA74
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#0F1108
muted
#7F807B

Preview Lab

Preview with #7B9731

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

Preview Lab → · Contrast checker → · Palette generator →

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