#2F7B45#2F7B45

#2F7B45 is a mid, moderate green. Relative luminance 0.152; OKLCH L 52.1% C 0.113 H 150.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2F7B45
RGBrgb(47, 123, 69)
HSLhsl(137, 45%, 33%)
HSVhsv(137, 62%, 48%)
CMYKcmyk(61.8%, 0%, 43.9%, 51.8%)
CIE-LABlab(45.91, -36.20, 22.72)
CIE-LCHlch(45.91, 42.74, 147.89°)
OKLaboklab(52.13% -0.0979 0.0561)
OKLCHoklch(52.13% 0.113 150.2)
XYZxyz(9.3287, 15.1990, 8.0712)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B45 #7B2F65
analogous
#3F7B2F #2F7B45 #2F7B6B
triadic
#2F7B45 #452F7B #7B452F
tetradic
#2F7B45 #2F3F7B #7B2F65 #7B6B2F
square
#2F7B45 #2F3F7B #7B2F65 #7B6B2F
split-complementary
#2F7B45 #6B2F7B #7B2F3F
monochromatic
#0D2213 #1E4F2C #2F7B45 #40A75E #62C37E

Accessibility & contrast

On white

5.20
#2F7B45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2F7B45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B45
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B45#FFFFFF#000000##FFFFFF
##2F7B451.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C7141
Deuteranopia (green-blind)
#726A49
Tritanopia (blue-blind)
#19796E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7b45;
/* rgb */ color: rgb(47, 123, 69);
/* oklch */ color: oklch(52.1% 0.113 150.2);
Tailwind
colors: {
  custom: {
    50: '#70a279',
    500: '#2f7b45',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b45;
$custom-light: #70a279;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b45",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 69
  },
  "hsl": {
    "h": 137.368,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5213,
    "c": 0.11283,
    "h": 150.2
  },
  "luminance": 0.152
}

Semantic roles & 50–950 ramp

primary
#2F7B45
secondary
#AA5C93
accent
#53AFD4
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2F7B45

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

Preview Lab → · Contrast checker → · Palette generator →

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