#2B7F21#2B7F21

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

Color values

HEX#2B7F21
RGBrgb(43, 127, 33)
HSLhsl(114, 59%, 31%)
HSVhsv(114, 74%, 50%)
CMYKcmyk(66.1%, 0%, 74%, 50.2%)
CIE-LABlab(46.71, -43.61, 41.52)
CIE-LCHlch(46.71, 60.21, 136.40°)
OKLaboklab(52.62% -0.119 0.0943)
OKLCHoklch(52.62% 0.152 141.6)
XYZxyz(8.8597, 15.8013, 4.0216)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7F21 #75217F
analogous
#5A7F21 #2B7F21 #217F46
triadic
#2B7F21 #212B7F #7F212B
tetradic
#2B7F21 #215A7F #75217F #7F4621
square
#2B7F21 #215A7F #75217F #7F4621
split-complementary
#2B7F21 #46217F #7F215A
monochromatic
#0A1E08 #1B4E14 #2B7F21 #3BB02E #59D04A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B7F21#FFFFFF#000000##FFFFFF
##2B7F211.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)
#827311
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#1C7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2b7f21;
/* rgb */ color: rgb(43, 127, 33);
/* oklch */ color: oklch(52.6% 0.152 141.6);
Tailwind
colors: {
  custom: {
    50: '#70a562',
    500: '#2b7f21',
    950: '#000000',
  },
}
SCSS
$custom: #2b7f21;
$custom-light: #70a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7f21",
  "rgb": {
    "r": 43,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 113.617,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52623,
    "c": 0.15184,
    "h": 141.6
  },
  "luminance": 0.15802
}

Semantic roles & 50–950 ramp

primary
#2B7F21
secondary
#A74AB2
accent
#46E2D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2B7F21

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

Preview Lab → · Contrast checker → · Palette generator →

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