#2F7B22#2F7B22

#2F7B22 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.144 H 141.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2F7B22
RGBrgb(47, 123, 34)
HSLhsl(111, 57%, 31%)
HSVhsv(111, 72%, 48%)
CMYKcmyk(61.8%, 0%, 72.4%, 51.8%)
CIE-LABlab(45.48, -41.01, 39.86)
CIE-LCHlch(45.48, 57.19, 135.81°)
OKLaboklab(51.64% -0.1121 0.091)
OKLCHoklch(51.64% 0.144 141)
XYZxyz(8.5436, 14.8850, 3.9359)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B22 #6E227B
analogous
#5B7B22 #2F7B22 #227B41
triadic
#2F7B22 #222F7B #7B222F
tetradic
#2F7B22 #225B7B #6E227B #7B4122
square
#2F7B22 #225B7B #6E227B #7B4122
split-complementary
#2F7B22 #41227B #7B225B
monochromatic
#0A1B07 #1D4B15 #2F7B22 #41AB2F #5DCD4A

Accessibility & contrast

On white

5.28
#2F7B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2F7B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B22
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B22#FFFFFF#000000##FFFFFF
##2F7B221.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7014
Deuteranopia (green-blind)
#75692B
Tritanopia (blue-blind)
#247769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b22;
/* rgb */ color: rgb(47, 123, 34);
/* oklch */ color: oklch(51.6% 0.144 141.0);
Tailwind
colors: {
  custom: {
    50: '#71a262',
    500: '#2f7b22',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b22;
$custom-light: #71a262;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b22",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 111.236,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51637,
    "c": 0.1444,
    "h": 141
  },
  "luminance": 0.14886
}

Semantic roles & 50–950 ramp

primary
#2F7B22
secondary
#9F4BAE
accent
#48E0CA
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2F7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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