#2B7D1F#2B7D1F

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

Color values

HEX#2B7D1F
RGBrgb(43, 125, 31)
HSLhsl(112, 60%, 31%)
HSVhsv(112, 75%, 49%)
CMYKcmyk(65.6%, 0%, 75.2%, 51%)
CIE-LABlab(46.01, -43.03, 41.60)
CIE-LCHlch(46.01, 59.85, 135.97°)
OKLaboklab(52.04% -0.1175 0.0942)
OKLCHoklch(52.04% 0.151 141.3)
XYZxyz(8.5768, 15.2789, 3.7932)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7D1F #711F7D
analogous
#5A7D1F #2B7D1F #1F7D42
triadic
#2B7D1F #1F2B7D #7D1F2B
tetradic
#2B7D1F #1F5A7D #711F7D #7D421F
square
#2B7D1F #1F5A7D #711F7D #7D421F
split-complementary
#2B7D1F #421F7D #7D1F5A
monochromatic
#091B07 #1A4C13 #2B7D1F #3CAE2B #57D145

Accessibility & contrast

On white

5.18
#2B7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2B7D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7D1F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7D1F#FFFFFF#000000##FFFFFF
##2B7D1F1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#1D796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2b7d1f;
/* rgb */ color: rgb(43, 125, 31);
/* oklch */ color: oklch(52.0% 0.151 141.3);
Tailwind
colors: {
  custom: {
    50: '#70a361',
    500: '#2b7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #2b7d1f;
$custom-light: #70a361;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7d1f",
  "rgb": {
    "r": 43,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 112.34,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5204,
    "c": 0.15064,
    "h": 141.3
  },
  "luminance": 0.1528
}

Semantic roles & 50–950 ramp

primary
#2B7D1F
secondary
#A348B0
accent
#44E3CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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