#2F7D1A#2F7D1A

#2F7D1A is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.152 H 140.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2F7D1A
RGBrgb(47, 125, 26)
HSLhsl(107, 66%, 30%)
HSVhsv(107, 79%, 49%)
CMYKcmyk(62.4%, 0%, 79.2%, 51%)
CIE-LABlab(46.10, -42.42, 43.60)
CIE-LCHlch(46.10, 60.83, 134.22°)
OKLaboklab(52.14% -0.1164 0.0976)
OKLCHoklch(52.14% 0.152 140)
XYZxyz(8.6920, 15.3454, 3.4810)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D1A #681A7D
analogous
#617D1A #2F7D1A #1A7D37
triadic
#2F7D1A #1A2F7D #7D1A2F
tetradic
#2F7D1A #1A617D #681A7D #7D371A
square
#2F7D1A #1A617D #681A7D #7D371A
split-complementary
#2F7D1A #371A7D #7D1A61
monochromatic
#0A1905 #1C4A0F #2F7D1A #42B025 #5CD63B

Accessibility & contrast

On white

5.16
#2F7D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2F7D1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D1A
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D1A#FFFFFF#000000##FFFFFF
##2F7D1A1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817103
Deuteranopia (green-blind)
#776B25
Tritanopia (blue-blind)
#25796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d1a;
/* rgb */ color: rgb(47, 125, 26);
/* oklch */ color: oklch(52.1% 0.152 140.0);
Tailwind
colors: {
  custom: {
    50: '#72a35f',
    500: '#2f7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d1a;
$custom-light: #72a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d1a",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 107.273,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52138,
    "c": 0.15195,
    "h": 140
  },
  "luminance": 0.15346
}

Semantic roles & 50–950 ramp

primary
#2F7D1A
secondary
#9942B1
accent
#3FE9C5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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