#7FA227#7FA227

#7FA227 is a light, vivid yellow-green. Relative luminance 0.305; OKLCH L 66.3% C 0.150 H 124.6°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7FA227
RGBrgb(127, 162, 39)
HSLhsl(77, 61%, 39%)
HSVhsv(77, 76%, 64%)
CMYKcmyk(21.6%, 0%, 75.9%, 36.5%)
CIE-LABlab(62.08, -29.38, 55.88)
CIE-LCHlch(62.08, 63.14, 117.74°)
OKLaboklab(66.31% -0.0854 0.1239)
OKLCHoklch(66.31% 0.15 124.6)
XYZxyz(22.0391, 30.4989, 6.6448)
Luminance0.3050 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA227 #4A27A2
analogous
#A28827 #7FA227 #42A227
triadic
#7FA227 #277FA2 #A2277F
tetradic
#7FA227 #27A288 #4A27A2 #A22742
square
#7FA227 #27A288 #4A27A2 #A22742
split-complementary
#7FA227 #2742A2 #8827A2
monochromatic
#323F0F #58711B #7FA227 #A4CF37 #BADB69

Accessibility & contrast

On white

2.96
#7FA227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#7FA227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA227
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA227#FFFFFF#000000##000000
##7FA2271.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB970A
Deuteranopia (green-blind)
#A79633
Tritanopia (blue-blind)
#859A8B
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #7fa227;
/* rgb */ color: rgb(127, 162, 39);
/* oklch */ color: oklch(66.3% 0.150 124.6);
Tailwind
colors: {
  custom: {
    50: '#a8bd6b',
    500: '#7fa227',
    950: '#000000',
  },
}
SCSS
$custom: #7fa227;
$custom-light: #a8bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa227",
  "rgb": {
    "r": 127,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 77.073,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.66314,
    "c": 0.15046,
    "h": 124.6
  },
  "luminance": 0.30499
}

Semantic roles & 50–950 ramp

primary
#7FA227
secondary
#7E64C1
accent
#43E471
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA227

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

Preview Lab → · Contrast checker → · Palette generator →

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