#7B9820#7B9820

#7B9820 is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.5% C 0.144 H 122.9°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7B9820
RGBrgb(123, 152, 32)
HSLhsl(75, 65%, 36%)
HSVhsv(75, 79%, 60%)
CMYKcmyk(19.1%, 0%, 78.9%, 40.4%)
CIE-LABlab(58.76, -26.56, 54.98)
CIE-LCHlch(58.76, 61.06, 115.79°)
OKLaboklab(63.55% -0.078 0.1209)
OKLCHoklch(63.55% 0.144 122.9)
XYZxyz(19.6576, 26.7716, 5.4980)
Luminance0.2677 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9820 #3D2098
analogous
#987920 #7B9820 #3F9820
triadic
#7B9820 #207B98 #98207B
tetradic
#7B9820 #209879 #3D2098 #98203F
square
#7B9820 #209879 #3D2098 #98203F
split-complementary
#7B9820 #203F98 #792098
monochromatic
#29330B #526515 #7B9820 #A4CB2B #BCDC57

Accessibility & contrast

On white

3.30
#7B9820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#7B9820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B9820
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B9820#FFFFFF#000000##000000
##7B98201.003.306.356.35
#FFFFFF3.301.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#9E8D2C
Tritanopia (blue-blind)
#829082
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7b9820;
/* rgb */ color: rgb(123, 152, 32);
/* oklch */ color: oklch(63.5% 0.144 122.9);
Tailwind
colors: {
  custom: {
    50: '#a5b666',
    500: '#7b9820',
    950: '#000000',
  },
}
SCSS
$custom: #7b9820;
$custom-light: #a5b666;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9820",
  "rgb": {
    "r": 123,
    "g": 152,
    "b": 32
  },
  "hsl": {
    "h": 74.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63548,
    "c": 0.14388,
    "h": 122.9
  },
  "luminance": 0.26772
}

Semantic roles & 50–950 ramp

primary
#7B9820
secondary
#6E54BF
accent
#40E868
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B9820

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

Preview Lab → · Contrast checker → · Palette generator →

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