#2F7822#2F7822

#2F7822 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.141 H 140.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#2F7822
RGBrgb(47, 120, 34)
HSLhsl(111, 56%, 30%)
HSVhsv(111, 72%, 47%)
CMYKcmyk(60.8%, 0%, 71.7%, 52.9%)
CIE-LABlab(44.45, -39.83, 38.79)
CIE-LCHlch(44.45, 55.60, 135.76°)
OKLaboklab(50.79% -0.109 0.0887)
OKLCHoklch(50.79% 0.141 140.9)
XYZxyz(8.1771, 14.1520, 3.8138)
Luminance0.1415 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7822 #6B2278
analogous
#5A7822 #2F7822 #227840
triadic
#2F7822 #222F78 #78222F
tetradic
#2F7822 #225A78 #6B2278 #784022
square
#2F7822 #225A78 #6B2278 #784022
split-complementary
#2F7822 #402278 #78225A
monochromatic
#0A1907 #1C4814 #2F7822 #42A830 #5DCB49

Accessibility & contrast

On white

5.48
#2F7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#2F7822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7822
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7822#FFFFFF#000000##FFFFFF
##2F78221.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D15
Deuteranopia (green-blind)
#72672A
Tritanopia (blue-blind)
#257467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f7822;
/* rgb */ color: rgb(47, 120, 34);
/* oklch */ color: oklch(50.8% 0.141 140.9);
Tailwind
colors: {
  custom: {
    50: '#71a062',
    500: '#2f7822',
    950: '#000000',
  },
}
SCSS
$custom: #2f7822;
$custom-light: #71a062;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7822",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 110.93,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5079,
    "c": 0.14051,
    "h": 140.9
  },
  "luminance": 0.14153
}

Semantic roles & 50–950 ramp

primary
#2F7822
secondary
#9C4BAB
accent
#49DFC8
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F05
muted
#7B7E7A

Preview Lab

Preview with #2F7822

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

Preview Lab → · Contrast checker → · Palette generator →

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