#2B7B1F#2B7B1F

#2B7B1F is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.148 H 141.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2B7B1F
RGBrgb(43, 123, 31)
HSLhsl(112, 60%, 30%)
HSVhsv(112, 75%, 48%)
CMYKcmyk(65%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.33, -42.28, 40.90)
CIE-LCHlch(45.33, 58.83, 135.95°)
OKLaboklab(51.47% -0.1155 0.0928)
OKLCHoklch(51.47% 0.148 141.2)
XYZxyz(8.3261, 14.7776, 3.7096)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7B1F #6F1F7B
analogous
#597B1F #2B7B1F #1F7B41
triadic
#2B7B1F #1F2B7B #7B1F2B
tetradic
#2B7B1F #1F597B #6F1F7B #7B411F
square
#2B7B1F #1F597B #6F1F7B #7B411F
split-complementary
#2B7B1F #411F7B #7B1F59
monochromatic
#091906 #1A4A13 #2B7B1F #3CAC2B #57D044

Accessibility & contrast

On white

5.31
#2B7B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2B7B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7B1F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7B1F#FFFFFF#000000##FFFFFF
##2B7B1F1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#746928
Tritanopia (blue-blind)
#1E7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2b7b1f;
/* rgb */ color: rgb(43, 123, 31);
/* oklch */ color: oklch(51.5% 0.148 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa261',
    500: '#2b7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #2b7b1f;
$custom-light: #6fa261;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7b1f",
  "rgb": {
    "r": 43,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 112.174,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51472,
    "c": 0.14815,
    "h": 141.2
  },
  "luminance": 0.14778
}

Semantic roles & 50–950 ramp

primary
#2B7B1F
secondary
#A148AE
accent
#45E3CE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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