#2F7C1A#2F7C1A

#2F7C1A is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.151 H 140.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2F7C1A
RGBrgb(47, 124, 26)
HSLhsl(107, 65%, 29%)
HSVhsv(107, 79%, 49%)
CMYKcmyk(62.1%, 0%, 79%, 51.4%)
CIE-LABlab(45.76, -42.04, 43.27)
CIE-LCHlch(45.76, 60.33, 134.18°)
OKLaboklab(51.86% -0.1154 0.0969)
OKLCHoklch(51.86% 0.151 140)
XYZxyz(8.5660, 15.0934, 3.4390)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C1A #671A7C
analogous
#607C1A #2F7C1A #1A7C36
triadic
#2F7C1A #1A2F7C #7C1A2F
tetradic
#2F7C1A #1A607C #671A7C #7C361A
square
#2F7C1A #1A607C #671A7C #7C361A
split-complementary
#2F7C1A #361A7C #7C1A60
monochromatic
#0A1905 #1C490F #2F7C1A #42AF25 #5CD63B

Accessibility & contrast

On white

5.23
#2F7C1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2F7C1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C1A
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C1A#FFFFFF#000000##FFFFFF
##2F7C1A1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807003
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#257869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7c1a;
/* rgb */ color: rgb(47, 124, 26);
/* oklch */ color: oklch(51.9% 0.151 140.0);
Tailwind
colors: {
  custom: {
    50: '#72a35e',
    500: '#2f7c1a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c1a;
$custom-light: #72a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c1a",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 107.143,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51856,
    "c": 0.15072,
    "h": 140
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#2F7C1A
secondary
#9842B0
accent
#40E8C4
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7C1A

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

Preview Lab → · Contrast checker → · Palette generator →

#2F7C1A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva