#7FA231#7FA231

#7FA231 is a light, vivid yellow-green. Relative luminance 0.306; OKLCH L 66.4% C 0.144 H 125.1°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7FA231
RGBrgb(127, 162, 49)
HSLhsl(79, 54%, 41%)
HSVhsv(79, 70%, 64%)
CMYKcmyk(21.6%, 0%, 69.8%, 36.5%)
CIE-LABlab(62.15, -28.79, 52.26)
CIE-LCHlch(62.15, 59.67, 118.85°)
OKLaboklab(66.39% -0.0829 0.1178)
OKLCHoklch(66.39% 0.144 125.1)
XYZxyz(22.2272, 30.5742, 7.6355)
Luminance0.3057 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA231 #5431A2
analogous
#A28D31 #7FA231 #47A231
triadic
#7FA231 #317FA2 #A2317F
tetradic
#7FA231 #31A28D #5431A2 #A23147
square
#7FA231 #31A28D #5431A2 #A23147
split-complementary
#7FA231 #3147A2 #8D31A2
monochromatic
#354415 #5A7323 #7FA231 #A0C848 #B9D677

Accessibility & contrast

On white

2.95
#7FA231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#7FA231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA231
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA231#FFFFFF#000000##000000
##7FA2311.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7fa231;
/* rgb */ color: rgb(127, 162, 49);
/* oklch */ color: oklch(66.4% 0.144 125.1);
Tailwind
colors: {
  custom: {
    50: '#a7bd70',
    500: '#7fa231',
    950: '#000000',
  },
}
SCSS
$custom: #7fa231;
$custom-light: #a7bd70;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa231",
  "rgb": {
    "r": 127,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 78.584,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.66387,
    "c": 0.14411,
    "h": 125.1
  },
  "luminance": 0.30574
}

Semantic roles & 50–950 ramp

primary
#7FA231
secondary
#8971BE
accent
#4BDD78
background
#FAFBF7
surface
#F4F6ED
border
#CED0C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA231

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

Preview Lab → · Contrast checker → · Palette generator →

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