#7FAF27#7FAF27

#7FAF27 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.06:1 contrast (WCAG AA passes).

Color values

HEX#7FAF27
RGBrgb(127, 175, 39)
HSLhsl(81, 64%, 42%)
HSVhsv(81, 78%, 69%)
CMYKcmyk(27.4%, 0%, 77.7%, 31.4%)
CIE-LABlab(66.00, -35.44, 59.58)
CIE-LCHlch(66.00, 69.32, 120.75°)
OKLaboklab(69.49% -0.1019 0.1316)
OKLCHoklch(69.49% 0.166 127.8)
XYZxyz(24.4486, 35.3179, 7.4480)
Luminance0.3532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAF27 #5727AF
analogous
#AF9B27 #7FAF27 #3BAF27
triadic
#7FAF27 #277FAF #AF277F
tetradic
#7FAF27 #27AF9B #5727AF #AF273B
square
#7FAF27 #27AF9B #5727AF #AF273B
split-complementary
#7FAF27 #273BAF #9B27AF
monochromatic
#364B11 #5B7D1C #7FAF27 #A0D43F #B8DF71

Accessibility & contrast

On white

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

On black

8.06
#7FAF27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FAF27
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FAF27#FFFFFF#000000##000000
##7FAF271.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7faf27;
/* rgb */ color: rgb(127, 175, 39);
/* oklch */ color: oklch(69.5% 0.166 127.8);
Tailwind
colors: {
  custom: {
    50: '#a8c76c',
    500: '#7faf27',
    950: '#000000',
  },
}
SCSS
$custom: #7faf27;
$custom-light: #a8c76c;
$custom-dark: #000000;
JSON
{
  "hex": "#7faf27",
  "rgb": {
    "r": 127,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 81.176,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.69488,
    "c": 0.16648,
    "h": 127.8
  },
  "luminance": 0.35318
}

Semantic roles & 50–950 ramp

primary
#7FAF27
secondary
#8C6BC6
accent
#41E77C
background
#FAFCF6
surface
#F4F8EC
border
#CED1C7
text
#101308
muted
#7F827B

Preview Lab

Preview with #7FAF27

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

Preview Lab → · Contrast checker → · Palette generator →

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