#7FA252#7FA252

#7FA252 is a light, moderate yellow-green. Relative luminance 0.310; OKLCH L 66.8% C 0.115 H 128.6°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7FA252
RGBrgb(127, 162, 82)
HSLhsl(86, 33%, 48%)
HSVhsv(86, 49%, 64%)
CMYKcmyk(21.6%, 0%, 49.4%, 36.5%)
CIE-LABlab(62.48, -25.80, 37.49)
CIE-LCHlch(62.48, 45.51, 124.53°)
OKLaboklab(66.76% -0.0717 0.0899)
OKLCHoklch(66.76% 0.115 128.6)
XYZxyz(23.1955, 30.9615, 12.7351)
Luminance0.3096 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA252 #7552A2
analogous
#A29D52 #7FA252 #57A252
triadic
#7FA252 #527FA2 #A2527F
tetradic
#7FA252 #52A29D #7552A2 #A25257
square
#7FA252 #52A29D #7552A2 #A25257
split-complementary
#7FA252 #5257A2 #9D52A2
monochromatic
#3F5129 #5F793D #7FA252 #9DBA77 #BACFA0

Accessibility & contrast

On white

2.92
#7FA252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#7FA252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA252
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA252#FFFFFF#000000##000000
##7FA2521.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9994B
Deuteranopia (green-blind)
#A49657
Tritanopia (blue-blind)
#829C8F
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #7fa252;
/* rgb */ color: rgb(127, 162, 82);
/* oklch */ color: oklch(66.8% 0.115 128.6);
Tailwind
colors: {
  custom: {
    50: '#a6bd84',
    500: '#7fa252',
    950: '#000000',
  },
}
SCSS
$custom: #7fa252;
$custom-light: #a6bd84;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa252",
  "rgb": {
    "r": 127,
    "g": 162,
    "b": 82
  },
  "hsl": {
    "h": 86.25,
    "s": 32.787,
    "l": 47.843
  },
  "oklch": {
    "l": 0.66758,
    "c": 0.11498,
    "h": 128.6
  },
  "luminance": 0.30962
}

Semantic roles & 50–950 ramp

primary
#7FA252
secondary
#A594BC
accent
#5FC98D
background
#FAFBF8
surface
#F4F6EF
border
#CED0CA
text
#0F120B
muted
#7F817C

Preview Lab

Preview with #7FA252

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

Preview Lab → · Contrast checker → · Palette generator →

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