#2F7E18#2F7E18

#2F7E18 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.154 H 139.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2F7E18
RGBrgb(47, 126, 24)
HSLhsl(106, 68%, 29%)
HSVhsv(106, 81%, 49%)
CMYKcmyk(62.7%, 0%, 81%, 50.6%)
CIE-LABlab(46.43, -42.93, 44.60)
CIE-LCHlch(46.43, 61.91, 133.91°)
OKLaboklab(52.41% -0.1179 0.0994)
OKLCHoklch(52.41% 0.154 139.9)
XYZxyz(8.7976, 15.5912, 3.4098)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E18 #67187E
analogous
#627E18 #2F7E18 #187E34
triadic
#2F7E18 #182F7E #7E182F
tetradic
#2F7E18 #18627E #67187E #7E3418
square
#2F7E18 #18627E #67187E #7E3418
split-complementary
#2F7E18 #34187E #7E1862
monochromatic
#0A1A05 #1C4B0E #2F7E18 #42B122 #5CD937

Accessibility & contrast

On white

5.10
#2F7E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2F7E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E18
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E18#FFFFFF#000000##FFFFFF
##2F7E181.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786C24
Tritanopia (blue-blind)
#247A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e18;
/* rgb */ color: rgb(47, 126, 24);
/* oklch */ color: oklch(52.4% 0.154 139.9);
Tailwind
colors: {
  custom: {
    50: '#72a45e',
    500: '#2f7e18',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e18;
$custom-light: #72a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e18",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 106.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52407,
    "c": 0.15425,
    "h": 139.9
  },
  "luminance": 0.15592
}

Semantic roles & 50–950 ramp

primary
#2F7E18
secondary
#983FB2
accent
#3DEBC4
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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