#2F7B18#2F7B18

#2F7B18 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.6% C 0.151 H 139.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2F7B18
RGBrgb(47, 123, 24)
HSLhsl(106, 67%, 29%)
HSVhsv(106, 80%, 48%)
CMYKcmyk(61.8%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.41, -41.80, 43.62)
CIE-LCHlch(45.41, 60.42, 133.78°)
OKLaboklab(51.56% -0.1149 0.0974)
OKLCHoklch(51.56% 0.151 139.7)
XYZxyz(8.4197, 14.8354, 3.2838)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B18 #64187B
analogous
#617B18 #2F7B18 #187B33
triadic
#2F7B18 #182F7B #7B182F
tetradic
#2F7B18 #18617B #64187B #7B3318
square
#2F7B18 #18617B #64187B #7B3318
split-complementary
#2F7B18 #33187B #7B1861
monochromatic
#0A1A05 #1B480E #2F7B18 #43AE22 #5BD836

Accessibility & contrast

On white

5.29
#2F7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2F7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B18
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B18#FFFFFF#000000##FFFFFF
##2F7B181.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#257769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7b18;
/* rgb */ color: rgb(47, 123, 24);
/* oklch */ color: oklch(51.6% 0.151 139.7);
Tailwind
colors: {
  custom: {
    50: '#72a25d',
    500: '#2f7b18',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b18;
$custom-light: #72a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b18",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 106.061,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51559,
    "c": 0.15059,
    "h": 139.7
  },
  "luminance": 0.14836
}

Semantic roles & 50–950 ramp

primary
#2F7B18
secondary
#963FB0
accent
#3EEAC2
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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