#7F9820#7F9820

#7F9820 is a light, vivid yellow-green. Relative luminance 0.271; OKLCH L 63.8% C 0.142 H 121.2°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7F9820
RGBrgb(127, 152, 32)
HSLhsl(73, 65%, 36%)
HSVhsv(73, 79%, 60%)
CMYKcmyk(16.4%, 0%, 78.9%, 40.4%)
CIE-LABlab(59.04, -24.87, 55.34)
CIE-LCHlch(59.04, 60.67, 114.20°)
OKLaboklab(63.85% -0.0736 0.1215)
OKLCHoklch(63.85% 0.142 121.2)
XYZxyz(20.2417, 27.0728, 5.5254)
Luminance0.2707 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9820 #392098
analogous
#987520 #7F9820 #439820
triadic
#7F9820 #207F98 #98207F
tetradic
#7F9820 #209875 #392098 #982043
square
#7F9820 #209875 #392098 #982043
split-complementary
#7F9820 #204398 #752098
monochromatic
#2B330B #556515 #7F9820 #A9CB2B #C0DC57

Accessibility & contrast

On white

3.27
#7F9820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#7F9820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9820
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9820#FFFFFF#000000##000000
##7F98201.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F00
Deuteranopia (green-blind)
#9F8E2C
Tritanopia (blue-blind)
#869082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7f9820;
/* rgb */ color: rgb(127, 152, 32);
/* oklch */ color: oklch(63.8% 0.142 121.2);
Tailwind
colors: {
  custom: {
    50: '#a8b666',
    500: '#7f9820',
    950: '#000000',
  },
}
SCSS
$custom: #7f9820;
$custom-light: #a8b666;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9820",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 32
  },
  "hsl": {
    "h": 72.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63845,
    "c": 0.14207,
    "h": 121.2
  },
  "luminance": 0.27073
}

Semantic roles & 50–950 ramp

primary
#7F9820
secondary
#6B54BF
accent
#40E863
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F9820

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

Preview Lab → · Contrast checker → · Palette generator →

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