#7FAF28#7FAF28

#7FAF28 is a light, vivid yellow-green. Relative luminance 0.353; OKLCH L 69.5% C 0.166 H 127.8°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7FAF28
RGBrgb(127, 175, 40)
HSLhsl(81, 63%, 42%)
HSVhsv(81, 77%, 69%)
CMYKcmyk(27.4%, 0%, 77.1%, 31.4%)
CIE-LABlab(66.00, -35.39, 59.26)
CIE-LCHlch(66.00, 69.03, 120.85°)
OKLaboklab(69.49% -0.1017 0.1311)
OKLCHoklch(69.49% 0.166 127.8)
XYZxyz(24.4654, 35.3246, 7.5364)
Luminance0.3533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAF28 #5828AF
analogous
#AF9B28 #7FAF28 #3CAF28
triadic
#7FAF28 #287FAF #AF287F
tetradic
#7FAF28 #28AF9B #5828AF #AF283C
square
#7FAF28 #28AF9B #5828AF #AF283C
split-complementary
#7FAF28 #283CAF #9B28AF
monochromatic
#374B11 #5B7D1D #7FAF28 #9FD441 #B8DF73

Accessibility & contrast

On white

2.60
#7FAF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#7FAF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FAF28
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FAF28#FFFFFF#000000##000000
##7FAF281.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A203
Deuteranopia (green-blind)
#B19F36
Tritanopia (blue-blind)
#84A796
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #7faf28;
/* rgb */ color: rgb(127, 175, 40);
/* oklch */ color: oklch(69.5% 0.166 127.8);
Tailwind
colors: {
  custom: {
    50: '#a8c76d',
    500: '#7faf28',
    950: '#000000',
  },
}
SCSS
$custom: #7faf28;
$custom-light: #a8c76d;
$custom-dark: #000000;
JSON
{
  "hex": "#7faf28",
  "rgb": {
    "r": 127,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 81.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.69494,
    "c": 0.16596,
    "h": 127.8
  },
  "luminance": 0.35325
}

Semantic roles & 50–950 ramp

primary
#7FAF28
secondary
#8C6DC6
accent
#42E67C
background
#FAFCF6
surface
#F4F8EC
border
#CED1C7
text
#101308
muted
#7F827B

Preview Lab

Preview with #7FAF28

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

Preview Lab → · Contrast checker → · Palette generator →

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