#7FA021#7FA021

#7FA021 is a light, vivid yellow-green. Relative luminance 0.298; OKLCH L 65.8% C 0.151 H 123.8°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#7FA021
RGBrgb(127, 160, 33)
HSLhsl(76, 66%, 38%)
HSVhsv(76, 79%, 63%)
CMYKcmyk(20.6%, 0%, 79.4%, 37.3%)
CIE-LABlab(61.45, -28.72, 57.23)
CIE-LCHlch(61.45, 64.04, 116.65°)
OKLaboklab(65.79% -0.0841 0.1257)
OKLCHoklch(65.79% 0.151 123.8)
XYZxyz(21.5980, 29.7633, 6.0456)
Luminance0.2976 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA021 #4221A0
analogous
#A08221 #7FA021 #3FA021
triadic
#7FA021 #217FA0 #A0217F
tetradic
#7FA021 #21A082 #4221A0 #A0213F
square
#7FA021 #21A082 #4221A0 #A0213F
split-complementary
#7FA021 #213FA0 #8221A0
monochromatic
#2E3B0C #576D17 #7FA021 #A7D32B #BCDE5E

Accessibility & contrast

On white

3.02
#7FA021 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#7FA021 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7FA021
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA021#FFFFFF#000000##000000
##7FA0211.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99500
Deuteranopia (green-blind)
#A5942E
Tritanopia (blue-blind)
#869889
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #7fa021;
/* rgb */ color: rgb(127, 160, 33);
/* oklch */ color: oklch(65.8% 0.151 123.8);
Tailwind
colors: {
  custom: {
    50: '#a8bc68',
    500: '#7fa021',
    950: '#000000',
  },
}
SCSS
$custom: #7fa021;
$custom-light: #a8bc68;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa021",
  "rgb": {
    "r": 127,
    "g": 160,
    "b": 33
  },
  "hsl": {
    "h": 75.591,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.65792,
    "c": 0.15123,
    "h": 123.8
  },
  "luminance": 0.29763
}

Semantic roles & 50–950 ramp

primary
#7FA021
secondary
#755BC2
accent
#3FE96B
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA021

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

Preview Lab → · Contrast checker → · Palette generator →

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