#2F7F28#2F7F28

#2F7F28 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.145 H 142.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2F7F28
RGBrgb(47, 127, 40)
HSLhsl(115, 52%, 33%)
HSVhsv(115, 69%, 50%)
CMYKcmyk(63%, 0%, 68.5%, 50.2%)
CIE-LABlab(46.89, -41.97, 38.77)
CIE-LCHlch(46.89, 57.13, 137.27°)
OKLaboklab(52.82% -0.1144 0.0894)
OKLCHoklch(52.82% 0.145 142)
XYZxyz(9.1442, 15.9354, 4.6010)
Luminance0.1594 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F28 #78287F
analogous
#5B7F28 #2F7F28 #287F4C
triadic
#2F7F28 #282F7F #7F282F
tetradic
#2F7F28 #285B7F #78287F #7F4C28
square
#2F7F28 #285B7F #78287F #7F4C28
split-complementary
#2F7F28 #4C287F #7F285B
monochromatic
#0D220B #1E5019 #2F7F28 #40AE37 #60CA57

Accessibility & contrast

On white

5.02
#2F7F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7F28
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F28#FFFFFF#000000##FFFFFF
##2F7F281.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731D
Deuteranopia (green-blind)
#786D30
Tritanopia (blue-blind)
#227B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f28;
/* rgb */ color: rgb(47, 127, 40);
/* oklch */ color: oklch(52.8% 0.145 142.0);
Tailwind
colors: {
  custom: {
    50: '#72a566',
    500: '#2f7f28',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f28;
$custom-light: #72a566;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f28",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 115.172,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52821,
    "c": 0.14519,
    "h": 142
  },
  "luminance": 0.15936
}

Semantic roles & 50–950 ramp

primary
#2F7F28
secondary
#A854AF
accent
#4CDCD0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7F28

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

Preview Lab → · Contrast checker → · Palette generator →

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