#2F8418#2F8418

#2F8418 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.1% C 0.161 H 140.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2F8418
RGBrgb(47, 132, 24)
HSLhsl(107, 69%, 31%)
HSVhsv(107, 82%, 52%)
CMYKcmyk(64.4%, 0%, 81.8%, 48.2%)
CIE-LABlab(48.48, -45.16, 46.54)
CIE-LCHlch(48.48, 64.85, 134.14°)
OKLaboklab(54.1% -0.1239 0.1035)
OKLCHoklch(54.1% 0.161 140.1)
XYZxyz(9.5880, 17.1719, 3.6732)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8418 #6D1884
analogous
#658418 #2F8418 #188437
triadic
#2F8418 #182F84 #84182F
tetradic
#2F8418 #186584 #6D1884 #843718
square
#2F8418 #186584 #6D1884 #843718
split-complementary
#2F8418 #371884 #841865
monochromatic
#0A1C05 #1D500F #2F8418 #41B821 #5DDB3B

Accessibility & contrast

On white

4.74
#2F8418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2F8418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8418
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8418#FFFFFF#000000##FFFFFF
##2F84181.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7E7025
Tritanopia (blue-blind)
#227F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f8418;
/* rgb */ color: rgb(47, 132, 24);
/* oklch */ color: oklch(54.1% 0.161 140.1);
Tailwind
colors: {
  custom: {
    50: '#73a95f',
    500: '#2f8418',
    950: '#000000',
  },
}
SCSS
$custom: #2f8418;
$custom-light: #73a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8418",
  "rgb": {
    "r": 47,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 107.222,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.16144,
    "h": 140.1
  },
  "luminance": 0.17173
}

Semantic roles & 50–950 ramp

primary
#2F8418
secondary
#9E40B8
accent
#3CECC7
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F8418

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

Preview Lab → · Contrast checker → · Palette generator →

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