#2B7A1F#2B7A1F

#2B7A1F is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.147 H 141.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#2B7A1F
RGBrgb(43, 122, 31)
HSLhsl(112, 59%, 30%)
HSVhsv(112, 75%, 48%)
CMYKcmyk(64.8%, 0%, 74.6%, 52.2%)
CIE-LABlab(44.98, -41.91, 40.55)
CIE-LCHlch(44.98, 58.31, 135.94°)
OKLaboklab(51.19% -0.1145 0.092)
OKLCHoklch(51.19% 0.147 141.2)
XYZxyz(8.2027, 14.5308, 3.6685)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7A1F #6E1F7A
analogous
#587A1F #2B7A1F #1F7A41
triadic
#2B7A1F #1F2B7A #7A1F2B
tetradic
#2B7A1F #1F587A #6E1F7A #7A411F
square
#2B7A1F #1F587A #6E1F7A #7A411F
split-complementary
#2B7A1F #411F7A #7A1F58
monochromatic
#091806 #1A4913 #2B7A1F #3CAB2B #56CF44

Accessibility & contrast

On white

5.38
#2B7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2B7A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7A1F
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7A1F#FFFFFF#000000##FFFFFF
##2B7A1F1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0F
Deuteranopia (green-blind)
#746828
Tritanopia (blue-blind)
#1E7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b7a1f;
/* rgb */ color: rgb(43, 122, 31);
/* oklch */ color: oklch(51.2% 0.147 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa161',
    500: '#2b7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #2b7a1f;
$custom-light: #6fa161;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7a1f",
  "rgb": {
    "r": 43,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 112.088,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51188,
    "c": 0.1469,
    "h": 141.2
  },
  "luminance": 0.14532
}

Semantic roles & 50–950 ramp

primary
#2B7A1F
secondary
#A047AD
accent
#45E3CE
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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