#2F7918#2F7918

#2F7918 is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.148 H 139.6°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2F7918
RGBrgb(47, 121, 24)
HSLhsl(106, 67%, 28%)
HSVhsv(106, 80%, 47%)
CMYKcmyk(61.2%, 0%, 80.2%, 52.5%)
CIE-LABlab(44.72, -41.03, 42.96)
CIE-LCHlch(44.72, 59.41, 133.69°)
OKLaboklab(50.99% -0.1128 0.096)
OKLCHoklch(50.99% 0.148 139.6)
XYZxyz(8.1742, 14.3443, 3.2019)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7918 #621879
analogous
#5F7918 #2F7918 #187931
triadic
#2F7918 #182F79 #79182F
tetradic
#2F7918 #185F79 #621879 #793118
square
#2F7918 #185F79 #621879 #793118
split-complementary
#2F7918 #311879 #79185F
monochromatic
#0A1A05 #1B460E #2F7918 #43AC22 #5BD735

Accessibility & contrast

On white

5.43
#2F7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2F7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7918
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7918#FFFFFF#000000##FFFFFF
##2F79181.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E01
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#267567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f7918;
/* rgb */ color: rgb(47, 121, 24);
/* oklch */ color: oklch(51.0% 0.148 139.6);
Tailwind
colors: {
  custom: {
    50: '#71a05d',
    500: '#2f7918',
    950: '#000000',
  },
}
SCSS
$custom: #2f7918;
$custom-light: #71a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7918",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 105.773,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50993,
    "c": 0.14813,
    "h": 139.6
  },
  "luminance": 0.14345
}

Semantic roles & 50–950 ramp

primary
#2F7918
secondary
#943FAE
accent
#3EEAC1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F7918

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

Preview Lab → · Contrast checker → · Palette generator →

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