#2A7F21#2A7F21

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

Color values

HEX#2A7F21
RGBrgb(42, 127, 33)
HSLhsl(114, 59%, 31%)
HSVhsv(114, 74%, 50%)
CMYKcmyk(66.9%, 0%, 74%, 50.2%)
CIE-LABlab(46.68, -43.84, 41.48)
CIE-LCHlch(46.68, 60.35, 136.58°)
OKLaboklab(52.59% -0.1195 0.0943)
OKLCHoklch(52.59% 0.152 141.7)
XYZxyz(8.8183, 15.7799, 4.0197)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F21 #76217F
analogous
#597F21 #2A7F21 #217F47
triadic
#2A7F21 #212A7F #7F212A
tetradic
#2A7F21 #21597F #76217F #7F4721
square
#2A7F21 #21597F #76217F #7F4721
split-complementary
#2A7F21 #47217F #7F2159
monochromatic
#0A1E08 #1A4E14 #2A7F21 #3AB02E #57D04A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7F21#FFFFFF#000000##FFFFFF
##2A7F211.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)
#1A7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f21;
/* rgb */ color: rgb(42, 127, 33);
/* oklch */ color: oklch(52.6% 0.152 141.7);
Tailwind
colors: {
  custom: {
    50: '#70a562',
    500: '#2a7f21',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f21;
$custom-light: #70a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f21",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 114.255,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52591,
    "c": 0.15223,
    "h": 141.7
  },
  "luminance": 0.15781
}

Semantic roles & 50–950 ramp

primary
#2A7F21
secondary
#A84AB2
accent
#46E2D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7F21

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

Preview Lab → · Contrast checker → · Palette generator →

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