#7FA528#7FA528

#7FA528 is a light, vivid yellow-green. Relative luminance 0.316; OKLCH L 67.1% C 0.154 H 125.5°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7FA528
RGBrgb(127, 165, 40)
HSLhsl(78, 61%, 40%)
HSVhsv(78, 76%, 65%)
CMYKcmyk(23%, 0%, 75.8%, 35.3%)
CIE-LABlab(62.99, -30.76, 56.41)
CIE-LCHlch(62.99, 64.25, 118.60°)
OKLaboklab(67.05% -0.0891 0.1251)
OKLCHoklch(67.05% 0.154 125.5)
XYZxyz(22.5907, 31.5752, 6.9115)
Luminance0.3157 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA528 #4E28A5
analogous
#A58C28 #7FA528 #40A528
triadic
#7FA528 #287FA5 #A5287F
tetradic
#7FA528 #28A58C #4E28A5 #A52840
square
#7FA528 #28A58C #4E28A5 #A52840
split-complementary
#7FA528 #2840A5 #8C28A5
monochromatic
#334210 #59741C #7FA528 #A2CF3B #BADB6C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FA528#FFFFFF#000000##000000
##7FA5281.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)
#AE9A0B
Deuteranopia (green-blind)
#A99834
Tritanopia (blue-blind)
#859D8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa528;
/* rgb */ color: rgb(127, 165, 40);
/* oklch */ color: oklch(67.1% 0.154 125.5);
Tailwind
colors: {
  custom: {
    50: '#a8bf6c',
    500: '#7fa528',
    950: '#000000',
  },
}
SCSS
$custom: #7fa528;
$custom-light: #a8bf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa528",
  "rgb": {
    "r": 127,
    "g": 165,
    "b": 40
  },
  "hsl": {
    "h": 78.24,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.67052,
    "c": 0.15361,
    "h": 125.5
  },
  "luminance": 0.31575
}

Semantic roles & 50–950 ramp

primary
#7FA528
secondary
#8367C2
accent
#44E474
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA528

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

Preview Lab → · Contrast checker → · Palette generator →

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