#2F7948#2F7948

#2F7948 is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.6% C 0.107 H 151.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#2F7948
RGBrgb(47, 121, 72)
HSLhsl(140, 44%, 33%)
HSVhsv(140, 61%, 47%)
CMYKcmyk(61.2%, 0%, 40.5%, 52.5%)
CIE-LABlab(45.28, -34.76, 20.21)
CIE-LCHlch(45.28, 40.21, 149.82°)
OKLaboklab(51.64% -0.0941 0.0503)
OKLCHoklch(51.64% 0.107 151.9)
XYZxyz(9.1787, 14.7461, 8.4922)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7948 #792F60
analogous
#3B792F #2F7948 #2F796D
triadic
#2F7948 #482F79 #79482F
tetradic
#2F7948 #2F3B79 #792F60 #796D2F
square
#2F7948 #2F3B79 #792F60 #796D2F
split-complementary
#2F7948 #6D2F79 #792F3B
monochromatic
#0D2114 #1E4D2E #2F7948 #40A562 #61C282

Accessibility & contrast

On white

5.32
#2F7948 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2F7948 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7948
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7948#FFFFFF#000000##FFFFFF
##2F79481.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F45
Deuteranopia (green-blind)
#6F684B
Tritanopia (blue-blind)
#19776D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7948;
/* rgb */ color: rgb(47, 121, 72);
/* oklch */ color: oklch(51.6% 0.107 151.9);
Tailwind
colors: {
  custom: {
    50: '#6fa07b',
    500: '#2f7948',
    950: '#000000',
  },
}
SCSS
$custom: #2f7948;
$custom-light: #6fa07b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7948",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 72
  },
  "hsl": {
    "h": 140.27,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51637,
    "c": 0.10675,
    "h": 151.9
  },
  "luminance": 0.14747
}

Semantic roles & 50–950 ramp

primary
#2F7948
secondary
#A85B8E
accent
#54A9D4
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2F7948

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

Preview Lab → · Contrast checker → · Palette generator →

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