#7FA828#7FA828

#7FA828 is a light, vivid yellow-green. Relative luminance 0.327; OKLCH L 67.8% C 0.157 H 126.2°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7FA828
RGBrgb(127, 168, 40)
HSLhsl(79, 62%, 41%)
HSVhsv(79, 76%, 66%)
CMYKcmyk(24.4%, 0%, 76.2%, 34.1%)
CIE-LABlab(63.89, -32.17, 57.27)
CIE-LCHlch(63.89, 65.68, 119.32°)
OKLaboklab(67.78% -0.0929 0.1269)
OKLCHoklch(67.78% 0.157 126.2)
XYZxyz(23.1382, 32.6701, 7.0940)
Luminance0.3267 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA828 #5128A8
analogous
#A89128 #7FA828 #3FA828
triadic
#7FA828 #287FA8 #A8287F
tetradic
#7FA828 #28A891 #5128A8 #A8283F
square
#7FA828 #28A891 #5128A8 #A8283F
split-complementary
#7FA828 #283FA8 #9128A8
monochromatic
#344510 #5A771C #7FA828 #A1D13D #B9DC6E

Accessibility & contrast

On white

2.79
#7FA828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#7FA828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA828
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA828#FFFFFF#000000##000000
##7FA8281.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C09
Deuteranopia (green-blind)
#AC9A34
Tritanopia (blue-blind)
#84A090
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #7fa828;
/* rgb */ color: rgb(127, 168, 40);
/* oklch */ color: oklch(67.8% 0.157 126.2);
Tailwind
colors: {
  custom: {
    50: '#a8c26c',
    500: '#7fa828',
    950: '#000000',
  },
}
SCSS
$custom: #7fa828;
$custom-light: #a8c26c;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa828",
  "rgb": {
    "r": 127,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 79.219,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.67783,
    "c": 0.15732,
    "h": 126.2
  },
  "luminance": 0.3267
}

Semantic roles & 50–950 ramp

primary
#7FA828
secondary
#8669C3
accent
#43E577
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA828

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

Preview Lab → · Contrast checker → · Palette generator →

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