#2F7928#2F7928

#2F7928 is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.1% C 0.137 H 141.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#2F7928
RGBrgb(47, 121, 40)
HSLhsl(115, 50%, 32%)
HSVhsv(115, 67%, 47%)
CMYKcmyk(61.2%, 0%, 66.9%, 52.5%)
CIE-LABlab(44.85, -39.62, 36.53)
CIE-LCHlch(44.85, 53.89, 137.32°)
OKLaboklab(51.13% -0.108 0.0847)
OKLCHoklch(51.13% 0.137 141.9)
XYZxyz(8.3922, 14.4315, 4.3504)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7928 #722879
analogous
#587928 #2F7928 #28794A
triadic
#2F7928 #282F79 #79282F
tetradic
#2F7928 #285879 #722879 #794A28
square
#2F7928 #285879 #722879 #794A28
split-complementary
#2F7928 #4A2879 #792858
monochromatic
#0B1D0A #1D4B19 #2F7928 #41A737 #5FC755

Accessibility & contrast

On white

5.40
#2F7928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#2F7928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7928
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7928#FFFFFF#000000##FFFFFF
##2F79281.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#73682F
Tritanopia (blue-blind)
#237568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f7928;
/* rgb */ color: rgb(47, 121, 40);
/* oklch */ color: oklch(51.1% 0.137 141.9);
Tailwind
colors: {
  custom: {
    50: '#70a066',
    500: '#2f7928',
    950: '#000000',
  },
}
SCSS
$custom: #2f7928;
$custom-light: #70a066;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7928",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 40
  },
  "hsl": {
    "h": 114.815,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.51133,
    "c": 0.13726,
    "h": 141.9
  },
  "luminance": 0.14432
}

Semantic roles & 50–950 ramp

primary
#2F7928
secondary
#A352AB
accent
#4EDACE
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2F7928

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

Preview Lab → · Contrast checker → · Palette generator →

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