#7FA522#7FA522

#7FA522 is a light, vivid yellow-green. Relative luminance 0.315; OKLCH L 67.0% C 0.157 H 125.2°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7FA522
RGBrgb(127, 165, 34)
HSLhsl(77, 66%, 39%)
HSVhsv(77, 79%, 65%)
CMYKcmyk(23%, 0%, 79.4%, 35.3%)
CIE-LABlab(62.96, -31.05, 58.31)
CIE-LCHlch(62.96, 66.06, 118.04°)
OKLaboklab(67.02% -0.0904 0.1281)
OKLCHoklch(67.02% 0.157 125.2)
XYZxyz(22.4965, 31.5375, 6.4152)
Luminance0.3154 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA522 #4822A5
analogous
#A58A22 #7FA522 #3DA522
triadic
#7FA522 #227FA5 #A5227F
tetradic
#7FA522 #22A58A #4822A5 #A5223D
square
#7FA522 #22A58A #4822A5 #A5223D
split-complementary
#7FA522 #223DA5 #8A22A5
monochromatic
#31400D #587218 #7FA522 #A5D430 #BBDF63

Accessibility & contrast

On white

2.87
#7FA522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#7FA522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA522
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA522#FFFFFF#000000##000000
##7FA5221.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A00
Deuteranopia (green-blind)
#A99830
Tritanopia (blue-blind)
#859D8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa522;
/* rgb */ color: rgb(127, 165, 34);
/* oklch */ color: oklch(67.0% 0.157 125.2);
Tailwind
colors: {
  custom: {
    50: '#a8bf69',
    500: '#7fa522',
    950: '#000000',
  },
}
SCSS
$custom: #7fa522;
$custom-light: #a8bf69;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa522",
  "rgb": {
    "r": 127,
    "g": 165,
    "b": 34
  },
  "hsl": {
    "h": 77.405,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.67016,
    "c": 0.1568,
    "h": 125.2
  },
  "luminance": 0.31538
}

Semantic roles & 50–950 ramp

primary
#7FA522
secondary
#7C5FC4
accent
#3FE970
background
#FAFBF6
surface
#F4F7EB
border
#CED0C6
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA522

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

Preview Lab → · Contrast checker → · Palette generator →

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