#2F7418#2F7418

#2F7418 is a mid, vivid green. Relative luminance 0.132; OKLCH L 49.6% C 0.142 H 139.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#2F7418
RGBrgb(47, 116, 24)
HSLhsl(105, 66%, 27%)
HSVhsv(105, 79%, 45%)
CMYKcmyk(59.5%, 0%, 79.3%, 54.5%)
CIE-LABlab(43.00, -39.09, 41.29)
CIE-LCHlch(43.00, 56.86, 133.43°)
OKLaboklab(49.57% -0.1076 0.0925)
OKLCHoklch(49.57% 0.142 139.3)
XYZxyz(7.5822, 13.1604, 3.0046)
Luminance0.1316 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7418 #5D1874
analogous
#5D7418 #2F7418 #18742F
triadic
#2F7418 #182F74 #74182F
tetradic
#2F7418 #185D74 #5D1874 #742F18
square
#2F7418 #185D74 #5D1874 #742F18
split-complementary
#2F7418 #2F1874 #74185D
monochromatic
#0A1905 #1A410E #2F7418 #44A722 #5BD532

Accessibility & contrast

On white

5.78
#2F7418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2F7418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7418
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7418#FFFFFF#000000##FFFFFF
##2F74181.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786904
Deuteranopia (green-blind)
#6F6322
Tritanopia (blue-blind)
#277063
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f7418;
/* rgb */ color: rgb(47, 116, 24);
/* oklch */ color: oklch(49.6% 0.142 139.3);
Tailwind
colors: {
  custom: {
    50: '#709d5c',
    500: '#2f7418',
    950: '#000000',
  },
}
SCSS
$custom: #2f7418;
$custom-light: #709d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7418",
  "rgb": {
    "r": 47,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 105,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49573,
    "c": 0.14189,
    "h": 139.3
  },
  "luminance": 0.13161
}

Semantic roles & 50–950 ramp

primary
#2F7418
secondary
#8F3FA9
accent
#3FE9BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7418

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

Preview Lab → · Contrast checker → · Palette generator →

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