#2F7818#2F7818

#2F7818 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.147 H 139.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#2F7818
RGBrgb(47, 120, 24)
HSLhsl(106, 67%, 28%)
HSVhsv(106, 80%, 47%)
CMYKcmyk(60.8%, 0%, 80%, 52.9%)
CIE-LABlab(44.38, -40.65, 42.63)
CIE-LCHlch(44.38, 58.90, 133.64°)
OKLaboklab(50.71% -0.1118 0.0953)
OKLCHoklch(50.71% 0.147 139.6)
XYZxyz(8.0533, 14.1025, 3.1616)
Luminance0.1410 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7818 #611878
analogous
#5F7818 #2F7818 #187831
triadic
#2F7818 #182F78 #78182F
tetradic
#2F7818 #185F78 #611878 #783118
square
#2F7818 #185F78 #611878 #783118
split-complementary
#2F7818 #311878 #78185F
monochromatic
#0A1A05 #1B450E #2F7818 #43AB22 #5BD634

Accessibility & contrast

On white

5.50
#2F7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2F7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7818
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7818#FFFFFF#000000##FFFFFF
##2F78181.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D02
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#267466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f7818;
/* rgb */ color: rgb(47, 120, 24);
/* oklch */ color: oklch(50.7% 0.147 139.6);
Tailwind
colors: {
  custom: {
    50: '#71a05d',
    500: '#2f7818',
    950: '#000000',
  },
}
SCSS
$custom: #2f7818;
$custom-light: #71a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7818",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 105.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50709,
    "c": 0.14689,
    "h": 139.6
  },
  "luminance": 0.14103
}

Semantic roles & 50–950 ramp

primary
#2F7818
secondary
#933FAD
accent
#3EEAC1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2F7818

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

Preview Lab → · Contrast checker → · Palette generator →

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