#2B7F20#2B7F20

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

Color values

HEX#2B7F20
RGBrgb(43, 127, 32)
HSLhsl(113, 60%, 31%)
HSVhsv(113, 75%, 50%)
CMYKcmyk(66.1%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.71, -43.69, 41.91)
CIE-LCHlch(46.71, 60.54, 136.19°)
OKLaboklab(52.61% -0.1193 0.095)
OKLCHoklch(52.61% 0.152 141.5)
XYZxyz(8.8459, 15.7957, 3.9489)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7F20 #74207F
analogous
#5A7F20 #2B7F20 #207F44
triadic
#2B7F20 #202B7F #7F202B
tetradic
#2B7F20 #205A7F #74207F #7F4420
square
#2B7F20 #205A7F #74207F #7F4420
split-complementary
#2B7F20 #44207F #7F205A
monochromatic
#0A1D07 #1A4E14 #2B7F20 #3CB02C #58D148

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B7F20#FFFFFF#000000##FFFFFF
##2B7F201.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)
#82730F
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#1C7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2b7f20;
/* rgb */ color: rgb(43, 127, 32);
/* oklch */ color: oklch(52.6% 0.152 141.5);
Tailwind
colors: {
  custom: {
    50: '#70a562',
    500: '#2b7f20',
    950: '#000000',
  },
}
SCSS
$custom: #2b7f20;
$custom-light: #70a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7f20",
  "rgb": {
    "r": 43,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 113.053,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52614,
    "c": 0.15249,
    "h": 141.5
  },
  "luminance": 0.15797
}

Semantic roles & 50–950 ramp

primary
#2B7F20
secondary
#A649B2
accent
#45E3D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2B7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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