#2F7F2A#2F7F2A

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

Color values

HEX#2F7F2A
RGBrgb(47, 127, 42)
HSLhsl(116, 50%, 33%)
HSVhsv(116, 67%, 50%)
CMYKcmyk(63%, 0%, 66.9%, 50.2%)
CIE-LABlab(46.91, -41.76, 37.88)
CIE-LCHlch(46.91, 56.38, 137.78°)
OKLaboklab(52.84% -0.1137 0.0878)
OKLCHoklch(52.84% 0.144 142.3)
XYZxyz(9.1791, 15.9494, 4.7849)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F2A #7A2A7F
analogous
#597F2A #2F7F2A #2A7F4F
triadic
#2F7F2A #2A2F7F #7F2A2F
tetradic
#2F7F2A #2A597F #7A2A7F #7F4F2A
square
#2F7F2A #2A597F #7A2A7F #7F4F2A
split-complementary
#2F7F2A #4F2A7F #7F2A59
monochromatic
#0D230C #1E511B #2F7F2A #40AD39 #61C95B

Accessibility & contrast

On white

5.01
#2F7F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2F7F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F2A
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F2A#FFFFFF#000000##FFFFFF
##2F7F2A1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731F
Deuteranopia (green-blind)
#786D31
Tritanopia (blue-blind)
#217B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f2a;
/* rgb */ color: rgb(47, 127, 42);
/* oklch */ color: oklch(52.8% 0.144 142.3);
Tailwind
colors: {
  custom: {
    50: '#72a568',
    500: '#2f7f2a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f2a;
$custom-light: #72a568;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f2a",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 116.471,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52842,
    "c": 0.14365,
    "h": 142.3
  },
  "luminance": 0.1595
}

Semantic roles & 50–950 ramp

primary
#2F7F2A
secondary
#A957AE
accent
#4EDAD2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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