#2F7311#2F7311

#2F7311 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.2% C 0.144 H 138.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#2F7311
RGBrgb(47, 115, 17)
HSLhsl(102, 74%, 26%)
HSVhsv(102, 85%, 45%)
CMYKcmyk(59.1%, 0%, 85.2%, 54.9%)
CIE-LABlab(42.62, -39.14, 43.25)
CIE-LCHlch(42.62, 58.33, 132.14°)
OKLaboklab(49.24% -0.1081 0.0955)
OKLCHoklch(49.24% 0.144 138.5)
XYZxyz(7.4039, 12.9056, 2.6311)
Luminance0.1291 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7311 #551173
analogous
#607311 #2F7311 #117324
triadic
#2F7311 #112F73 #73112F
tetradic
#2F7311 #116073 #551173 #732411
square
#2F7311 #116073 #551173 #732411
split-complementary
#2F7311 #241173 #731160
monochromatic
#0B1B04 #193E09 #2F7311 #45A819 #5BDE21

Accessibility & contrast

On white

5.86
#2F7311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2F7311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7311
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7311#FFFFFF#000000##FFFFFF
##2F73111.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E631D
Tritanopia (blue-blind)
#286F61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f7311;
/* rgb */ color: rgb(47, 115, 17);
/* oklch */ color: oklch(49.2% 0.144 138.5);
Tailwind
colors: {
  custom: {
    50: '#709c59',
    500: '#2f7311',
    950: '#000000',
  },
}
SCSS
$custom: #2f7311;
$custom-light: #709c59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7311",
  "rgb": {
    "r": 47,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 101.633,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49244,
    "c": 0.14426,
    "h": 138.5
  },
  "luminance": 0.12906
}

Semantic roles & 50–950 ramp

primary
#2F7311
secondary
#8636AA
accent
#37F1B8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7311

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

Preview Lab → · Contrast checker → · Palette generator →

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