#7F9822#7F9822

#7F9822 is a light, vivid yellow-green. Relative luminance 0.271; OKLCH L 63.9% C 0.141 H 121.3°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7F9822
RGBrgb(127, 152, 34)
HSLhsl(73, 63%, 36%)
HSVhsv(73, 78%, 60%)
CMYKcmyk(16.4%, 0%, 77.6%, 40.4%)
CIE-LABlab(59.05, -24.77, 54.70)
CIE-LCHlch(59.05, 60.05, 114.37°)
OKLaboklab(63.86% -0.0732 0.1205)
OKLCHoklch(63.86% 0.141 121.3)
XYZxyz(20.2697, 27.0840, 5.6730)
Luminance0.2708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9822 #3B2298
analogous
#987622 #7F9822 #449822
triadic
#7F9822 #227F98 #98227F
tetradic
#7F9822 #229876 #3B2298 #982244
square
#7F9822 #229876 #3B2298 #982244
split-complementary
#7F9822 #224498 #762298
monochromatic
#2B340C #556617 #7F9822 #A9CA2D #BFDA5A

Accessibility & contrast

On white

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

On black

6.42
#7F9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9822
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9822#FFFFFF#000000##000000
##7F98221.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f9822;
/* rgb */ color: rgb(127, 152, 34);
/* oklch */ color: oklch(63.9% 0.141 121.3);
Tailwind
colors: {
  custom: {
    50: '#a7b667',
    500: '#7f9822',
    950: '#000000',
  },
}
SCSS
$custom: #7f9822;
$custom-light: #a7b667;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9822",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 72.712,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63856,
    "c": 0.14101,
    "h": 121.3
  },
  "luminance": 0.27084
}

Semantic roles & 50–950 ramp

primary
#7F9822
secondary
#6D57BE
accent
#41E664
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F9822

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

Preview Lab → · Contrast checker → · Palette generator →

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