#2F792B#2F792B

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

Color values

HEX#2F792B
RGBrgb(47, 121, 43)
HSLhsl(117, 48%, 32%)
HSVhsv(117, 64%, 47%)
CMYKcmyk(61.2%, 0%, 64.5%, 52.5%)
CIE-LABlab(44.88, -39.28, 35.15)
CIE-LCHlch(44.88, 52.71, 138.17°)
OKLaboklab(51.17% -0.1069 0.0821)
OKLCHoklch(51.17% 0.135 142.5)
XYZxyz(8.4453, 14.4527, 4.6296)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F792B #752B79
analogous
#56792B #2F792B #2B794E
triadic
#2F792B #2B2F79 #792B2F
tetradic
#2F792B #2B5679 #752B79 #794E2B
square
#2F792B #2B5679 #752B79 #794E2B
split-complementary
#2F792B #4E2B79 #792B56
monochromatic
#0C1F0B #1D4C1B #2F792B #41A63B #5FC45A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F792B#FFFFFF#000000##FFFFFF
##2F792B1.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)
#7C6E22
Deuteranopia (green-blind)
#726831
Tritanopia (blue-blind)
#237568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f792b;
/* rgb */ color: rgb(47, 121, 43);
/* oklch */ color: oklch(51.2% 0.135 142.5);
Tailwind
colors: {
  custom: {
    50: '#70a068',
    500: '#2f792b',
    950: '#000000',
  },
}
SCSS
$custom: #2f792b;
$custom-light: #70a068;
$custom-dark: #000000;
JSON
{
  "hex": "#2f792b",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 43
  },
  "hsl": {
    "h": 116.923,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51168,
    "c": 0.13481,
    "h": 142.5
  },
  "luminance": 0.14454
}

Semantic roles & 50–950 ramp

primary
#2F792B
secondary
#A656AA
accent
#51D7D0
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2F792B

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

Preview Lab → · Contrast checker → · Palette generator →

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