#2F7C18#2F7C18

#2F7C18 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.152 H 139.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2F7C18
RGBrgb(47, 124, 24)
HSLhsl(106, 68%, 29%)
HSVhsv(106, 81%, 49%)
CMYKcmyk(62.1%, 0%, 80.6%, 51.4%)
CIE-LABlab(45.75, -42.18, 43.95)
CIE-LCHlch(45.75, 60.92, 133.82°)
OKLaboklab(51.84% -0.1159 0.0981)
OKLCHoklch(51.84% 0.152 139.8)
XYZxyz(8.5444, 15.0848, 3.3254)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C18 #65187C
analogous
#617C18 #2F7C18 #187C33
triadic
#2F7C18 #182F7C #7C182F
tetradic
#2F7C18 #18617C #65187C #7C3318
square
#2F7C18 #18617C #65187C #7C3318
split-complementary
#2F7C18 #33187C #7C1861
monochromatic
#0A1A05 #1C490E #2F7C18 #42AF22 #5BD836

Accessibility & contrast

On white

5.23
#2F7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2F7C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C18
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C18#FFFFFF#000000##FFFFFF
##2F7C181.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#257869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7c18;
/* rgb */ color: rgb(47, 124, 24);
/* oklch */ color: oklch(51.8% 0.152 139.8);
Tailwind
colors: {
  custom: {
    50: '#72a35e',
    500: '#2f7c18',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c18;
$custom-light: #72a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c18",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 106.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51842,
    "c": 0.15182,
    "h": 139.8
  },
  "luminance": 0.15086
}

Semantic roles & 50–950 ramp

primary
#2F7C18
secondary
#973FB1
accent
#3DEAC3
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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