#2F7211#2F7211

#2F7211 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.143 H 138.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2F7211
RGBrgb(47, 114, 17)
HSLhsl(101, 74%, 26%)
HSVhsv(101, 85%, 45%)
CMYKcmyk(58.8%, 0%, 85.1%, 55.3%)
CIE-LABlab(42.28, -38.74, 42.93)
CIE-LCHlch(42.28, 57.83, 132.06°)
OKLaboklab(48.96% -0.1071 0.0949)
OKLCHoklch(48.96% 0.143 138.5)
XYZxyz(7.2905, 12.6788, 2.5933)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7211 #541172
analogous
#5F7211 #2F7211 #117223
triadic
#2F7211 #112F72 #72112F
tetradic
#2F7211 #115F72 #541172 #722311
square
#2F7211 #115F72 #541172 #722311
split-complementary
#2F7211 #231172 #72115F
monochromatic
#0B1B04 #193D09 #2F7211 #45A719 #5BDD21

Accessibility & contrast

On white

5.94
#2F7211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2F7211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7211
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7211#FFFFFF#000000##FFFFFF
##2F72111.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D621D
Tritanopia (blue-blind)
#296E60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7211;
/* rgb */ color: rgb(47, 114, 17);
/* oklch */ color: oklch(49.0% 0.143 138.5);
Tailwind
colors: {
  custom: {
    50: '#709b59',
    500: '#2f7211',
    950: '#000000',
  },
}
SCSS
$custom: #2f7211;
$custom-light: #709b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7211",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 101.443,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.48959,
    "c": 0.14304,
    "h": 138.5
  },
  "luminance": 0.12679
}

Semantic roles & 50–950 ramp

primary
#2F7211
secondary
#8536A9
accent
#37F1B7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7211

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

Preview Lab → · Contrast checker → · Palette generator →

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