#2F792A#2F792A

#2F792A is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.2% C 0.136 H 142.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#2F792A
RGBrgb(47, 121, 42)
HSLhsl(116, 48%, 32%)
HSVhsv(116, 65%, 47%)
CMYKcmyk(61.2%, 0%, 65.3%, 52.5%)
CIE-LABlab(44.87, -39.40, 35.62)
CIE-LCHlch(44.87, 53.11, 137.88°)
OKLaboklab(51.16% -0.1073 0.083)
OKLCHoklch(51.16% 0.136 142.3)
XYZxyz(8.4271, 14.4455, 4.5342)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F792A #742A79
analogous
#56792A #2F792A #2A794D
triadic
#2F792A #2A2F79 #792A2F
tetradic
#2F792A #2A5679 #742A79 #794D2A
square
#2F792A #2A5679 #742A79 #794D2A
split-complementary
#2F792A #4D2A79 #792A56
monochromatic
#0C1E0A #1D4C1A #2F792A #41A63A #5FC558

Accessibility & contrast

On white

5.40
#2F792A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#2F792A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F792A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F792A#FFFFFF#000000##FFFFFF
##2F792A1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E21
Deuteranopia (green-blind)
#726831
Tritanopia (blue-blind)
#237568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f792a;
/* rgb */ color: rgb(47, 121, 42);
/* oklch */ color: oklch(51.2% 0.136 142.3);
Tailwind
colors: {
  custom: {
    50: '#70a067',
    500: '#2f792a',
    950: '#000000',
  },
}
SCSS
$custom: #2f792a;
$custom-light: #70a067;
$custom-dark: #000000;
JSON
{
  "hex": "#2f792a",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 42
  },
  "hsl": {
    "h": 116.203,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51156,
    "c": 0.13564,
    "h": 142.3
  },
  "luminance": 0.14446
}

Semantic roles & 50–950 ramp

primary
#2F792A
secondary
#A554AB
accent
#50D8CF
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2F792A

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

Preview Lab → · Contrast checker → · Palette generator →

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