#2B7C1F#2B7C1F

#2B7C1F is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.149 H 141.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2B7C1F
RGBrgb(43, 124, 31)
HSLhsl(112, 60%, 30%)
HSVhsv(112, 75%, 49%)
CMYKcmyk(65.3%, 0%, 75%, 51.4%)
CIE-LABlab(45.67, -42.66, 41.25)
CIE-LCHlch(45.67, 59.34, 135.96°)
OKLaboklab(51.76% -0.1165 0.0935)
OKLCHoklch(51.76% 0.149 141.3)
XYZxyz(8.4508, 15.0270, 3.7512)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7C1F #701F7C
analogous
#597C1F #2B7C1F #1F7C41
triadic
#2B7C1F #1F2B7C #7C1F2B
tetradic
#2B7C1F #1F597C #701F7C #7C411F
square
#2B7C1F #1F597C #701F7C #7C411F
split-complementary
#2B7C1F #411F7C #7C1F59
monochromatic
#091A07 #1A4B13 #2B7C1F #3CAD2B #57D045

Accessibility & contrast

On white

5.24
#2B7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2B7C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7C1F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7C1F#FFFFFF#000000##FFFFFF
##2B7C1F1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#756A28
Tritanopia (blue-blind)
#1D786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2b7c1f;
/* rgb */ color: rgb(43, 124, 31);
/* oklch */ color: oklch(51.8% 0.149 141.3);
Tailwind
colors: {
  custom: {
    50: '#70a361',
    500: '#2b7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #2b7c1f;
$custom-light: #70a361;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7c1f",
  "rgb": {
    "r": 43,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 112.258,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51756,
    "c": 0.1494,
    "h": 141.3
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#2B7C1F
secondary
#A248AF
accent
#45E3CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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