#2F7218#2F7218

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

Color values

HEX#2F7218
RGBrgb(47, 114, 24)
HSLhsl(105, 65%, 27%)
HSVhsv(105, 79%, 45%)
CMYKcmyk(58.8%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.31, -38.29, 40.62)
CIE-LCHlch(42.31, 55.82, 133.31°)
OKLaboklab(49% -0.1054 0.0911)
OKLCHoklch(49% 0.139 139.2)
XYZxyz(7.3542, 12.7043, 2.9286)
Luminance0.1270 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7218 #5B1872
analogous
#5C7218 #2F7218 #18722E
triadic
#2F7218 #182F72 #72182F
tetradic
#2F7218 #185C72 #5B1872 #722E18
square
#2F7218 #185C72 #5B1872 #722E18
split-complementary
#2F7218 #2E1872 #72185C
monochromatic
#0A1905 #1A3F0D #2F7218 #44A523 #5AD431

Accessibility & contrast

On white

5.93
#2F7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7218
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7218#FFFFFF#000000##FFFFFF
##2F72181.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766705
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#286E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7218;
/* rgb */ color: rgb(47, 114, 24);
/* oklch */ color: oklch(49.0% 0.139 139.2);
Tailwind
colors: {
  custom: {
    50: '#709b5c',
    500: '#2f7218',
    950: '#000000',
  },
}
SCSS
$custom: #2f7218;
$custom-light: #709b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7218",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 104.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49004,
    "c": 0.13935,
    "h": 139.2
  },
  "luminance": 0.12705
}

Semantic roles & 50–950 ramp

primary
#2F7218
secondary
#8D3EA7
accent
#40E8BD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7218

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

Preview Lab → · Contrast checker → · Palette generator →

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