#2B7F1F#2B7F1F

#2B7F1F is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.153 H 141.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2B7F1F
RGBrgb(43, 127, 31)
HSLhsl(113, 61%, 31%)
HSVhsv(113, 76%, 50%)
CMYKcmyk(66.1%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.70, -43.78, 42.30)
CIE-LCHlch(46.70, 60.87, 135.99°)
OKLaboklab(52.61% -0.1196 0.0957)
OKLCHoklch(52.61% 0.153 141.3)
XYZxyz(8.8325, 15.7904, 3.8784)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7F1F #731F7F
analogous
#5B7F1F #2B7F1F #1F7F43
triadic
#2B7F1F #1F2B7F #7F1F2B
tetradic
#2B7F1F #1F5B7F #731F7F #7F431F
square
#2B7F1F #1F5B7F #731F7F #7F431F
split-complementary
#2B7F1F #431F7F #7F1F5B
monochromatic
#0A1D07 #1A4E13 #2B7F1F #3CB02B #58D246

Accessibility & contrast

On white

5.05
#2B7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2B7F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7F1F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7F1F#FFFFFF#000000##FFFFFF
##2B7F1F1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#1C7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2b7f1f;
/* rgb */ color: rgb(43, 127, 31);
/* oklch */ color: oklch(52.6% 0.153 141.3);
Tailwind
colors: {
  custom: {
    50: '#70a561',
    500: '#2b7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #2b7f1f;
$custom-light: #70a561;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7f1f",
  "rgb": {
    "r": 43,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 112.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52606,
    "c": 0.15312,
    "h": 141.3
  },
  "luminance": 0.15791
}

Semantic roles & 50–950 ramp

primary
#2B7F1F
secondary
#A548B2
accent
#44E4D0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2B7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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