#2F7828#2F7828

#2F7828 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.9% C 0.136 H 141.9°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#2F7828
RGBrgb(47, 120, 40)
HSLhsl(115, 50%, 31%)
HSVhsv(115, 67%, 47%)
CMYKcmyk(60.8%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.50, -39.22, 36.16)
CIE-LCHlch(44.50, 53.34, 137.33°)
OKLaboklab(50.85% -0.1069 0.0839)
OKLCHoklch(50.85% 0.136 141.9)
XYZxyz(8.2713, 14.1897, 4.3101)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7828 #712878
analogous
#577828 #2F7828 #287849
triadic
#2F7828 #282F78 #78282F
tetradic
#2F7828 #285778 #712878 #784928
square
#2F7828 #285778 #712878 #784928
split-complementary
#2F7828 #492878 #782857
monochromatic
#0B1C09 #1D4A19 #2F7828 #41A637 #5EC654

Accessibility & contrast

On white

5.47
#2F7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#2F7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7828
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7828#FFFFFF#000000##FFFFFF
##2F78281.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#72672F
Tritanopia (blue-blind)
#247467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f7828;
/* rgb */ color: rgb(47, 120, 40);
/* oklch */ color: oklch(50.9% 0.136 141.9);
Tailwind
colors: {
  custom: {
    50: '#70a066',
    500: '#2f7828',
    950: '#000000',
  },
}
SCSS
$custom: #2f7828;
$custom-light: #70a066;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7828",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 114.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.50852,
    "c": 0.13592,
    "h": 141.9
  },
  "luminance": 0.1419
}

Semantic roles & 50–950 ramp

primary
#2F7828
secondary
#A252AA
accent
#4EDACD
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2F7828

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

Preview Lab → · Contrast checker → · Palette generator →

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