#2F7318#2F7318

#2F7318 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.3% C 0.141 H 139.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#2F7318
RGBrgb(47, 115, 24)
HSLhsl(105, 65%, 27%)
HSVhsv(105, 79%, 45%)
CMYKcmyk(59.1%, 0%, 79.1%, 54.9%)
CIE-LABlab(42.66, -38.69, 40.96)
CIE-LCHlch(42.66, 56.34, 133.37°)
OKLaboklab(49.29% -0.1065 0.0918)
OKLCHoklch(49.29% 0.141 139.2)
XYZxyz(7.4676, 12.9311, 2.9664)
Luminance0.1293 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7318 #5C1873
analogous
#5D7318 #2F7318 #18732E
triadic
#2F7318 #182F73 #73182F
tetradic
#2F7318 #185D73 #5C1873 #732E18
square
#2F7318 #185D73 #5C1873 #732E18
split-complementary
#2F7318 #2E1873 #73185D
monochromatic
#0A1905 #1A400D #2F7318 #44A623 #5AD431

Accessibility & contrast

On white

5.86
#2F7318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#2F7318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7318
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7318#FFFFFF#000000##FFFFFF
##2F73181.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776804
Deuteranopia (green-blind)
#6E6322
Tritanopia (blue-blind)
#286F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f7318;
/* rgb */ color: rgb(47, 115, 24);
/* oklch */ color: oklch(49.3% 0.141 139.2);
Tailwind
colors: {
  custom: {
    50: '#709c5c',
    500: '#2f7318',
    950: '#000000',
  },
}
SCSS
$custom: #2f7318;
$custom-light: #709c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7318",
  "rgb": {
    "r": 47,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 104.835,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49288,
    "c": 0.14062,
    "h": 139.2
  },
  "luminance": 0.12932
}

Semantic roles & 50–950 ramp

primary
#2F7318
secondary
#8E3FA8
accent
#3FE8BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7318

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

Preview Lab → · Contrast checker → · Palette generator →

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