#2F751C#2F751C

#2F751C is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.9% C 0.141 H 139.9°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#2F751C
RGBrgb(47, 117, 28)
HSLhsl(107, 61%, 28%)
HSVhsv(107, 76%, 46%)
CMYKcmyk(59.8%, 0%, 76.1%, 54.1%)
CIE-LABlab(43.37, -39.18, 40.15)
CIE-LCHlch(43.37, 56.10, 134.30°)
OKLaboklab(49.89% -0.1076 0.0907)
OKLCHoklch(49.89% 0.141 139.9)
XYZxyz(7.7428, 13.4101, 3.2788)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F751C #621C75
analogous
#5B751C #2F751C #1C7535
triadic
#2F751C #1C2F75 #751C2F
tetradic
#2F751C #1C5B75 #621C75 #75351C
square
#2F751C #1C5B75 #621C75 #75351C
split-complementary
#2F751C #351C75 #751C5B
monochromatic
#0A1906 #1B4410 #2F751C #43A628 #5BD03B

Accessibility & contrast

On white

5.70
#2F751C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#2F751C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F751C
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F751C#FFFFFF#000000##FFFFFF
##2F751C1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A0C
Deuteranopia (green-blind)
#706425
Tritanopia (blue-blind)
#277164
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f751c;
/* rgb */ color: rgb(47, 117, 28);
/* oklch */ color: oklch(49.9% 0.141 139.9);
Tailwind
colors: {
  custom: {
    50: '#709d5f',
    500: '#2f751c',
    950: '#000000',
  },
}
SCSS
$custom: #2f751c;
$custom-light: #709d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f751c",
  "rgb": {
    "r": 47,
    "g": 117,
    "b": 28
  },
  "hsl": {
    "h": 107.191,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49888,
    "c": 0.14072,
    "h": 139.9
  },
  "luminance": 0.13411
}

Semantic roles & 50–950 ramp

primary
#2F751C
secondary
#9444A9
accent
#43E4C2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2F751C

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

Preview Lab → · Contrast checker → · Palette generator →

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