#2F7940#2F7940

#2F7940 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.5% C 0.115 H 148.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2F7940
RGBrgb(47, 121, 64)
HSLhsl(134, 44%, 33%)
HSVhsv(134, 61%, 47%)
CMYKcmyk(61.2%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.15, -36.23, 24.53)
CIE-LCHlch(45.15, 43.75, 145.90°)
OKLaboklab(51.48% -0.098 0.0601)
OKLCHoklch(51.48% 0.115 148.5)
XYZxyz(8.9345, 14.6484, 7.2061)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7940 #792F68
analogous
#43792F #2F7940 #2F7965
triadic
#2F7940 #402F79 #79402F
tetradic
#2F7940 #2F4379 #792F68 #79652F
square
#2F7940 #2F4379 #792F68 #79652F
split-complementary
#2F7940 #652F79 #792F43
monochromatic
#0D2111 #1E4D29 #2F7940 #40A557 #61C277

Accessibility & contrast

On white

5.34
#2F7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2F7940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7940
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7940#FFFFFF#000000##FFFFFF
##2F79401.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#706844
Tritanopia (blue-blind)
#1C776B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7940;
/* rgb */ color: rgb(47, 121, 64);
/* oklch */ color: oklch(51.5% 0.115 148.5);
Tailwind
colors: {
  custom: {
    50: '#6fa076',
    500: '#2f7940',
    950: '#000000',
  },
}
SCSS
$custom: #2f7940;
$custom-light: #6fa076;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7940",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 133.784,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51482,
    "c": 0.11495,
    "h": 148.5
  },
  "luminance": 0.14649
}

Semantic roles & 50–950 ramp

primary
#2F7940
secondary
#A85B97
accent
#54B6D4
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2F7940

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

Preview Lab → · Contrast checker → · Palette generator →

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