#2F7018#2F7018

#2F7018 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.4% C 0.137 H 139.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2F7018
RGBrgb(47, 112, 24)
HSLhsl(104, 65%, 27%)
HSVhsv(104, 79%, 44%)
CMYKcmyk(58%, 0%, 78.6%, 56.1%)
CIE-LABlab(41.62, -37.49, 39.94)
CIE-LCHlch(41.62, 54.78, 133.19°)
OKLaboklab(48.43% -0.1033 0.0897)
OKLCHoklch(48.43% 0.137 139)
XYZxyz(7.1310, 12.2580, 2.8542)
Luminance0.1226 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7018 #591870
analogous
#5B7018 #2F7018 #18702D
triadic
#2F7018 #182F70 #70182F
tetradic
#2F7018 #185B70 #591870 #702D18
square
#2F7018 #185B70 #591870 #702D18
split-complementary
#2F7018 #2D1870 #70185B
monochromatic
#0B1905 #1A3E0D #2F7018 #44A223 #5AD330

Accessibility & contrast

On white

6.08
#2F7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2F7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7018
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7018#FFFFFF#000000##FFFFFF
##2F70181.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736606
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#286C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f7018;
/* rgb */ color: rgb(47, 112, 24);
/* oklch */ color: oklch(48.4% 0.137 139.0);
Tailwind
colors: {
  custom: {
    50: '#709a5c',
    500: '#2f7018',
    950: '#000000',
  },
}
SCSS
$custom: #2f7018;
$custom-light: #709a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7018",
  "rgb": {
    "r": 47,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 104.318,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48433,
    "c": 0.13678,
    "h": 139
  },
  "luminance": 0.12259
}

Semantic roles & 50–950 ramp

primary
#2F7018
secondary
#8B3EA5
accent
#40E8BC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7018

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

Preview Lab → · Contrast checker → · Palette generator →

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