#2A7F20#2A7F20

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

Color values

HEX#2A7F20
RGBrgb(42, 127, 32)
HSLhsl(114, 60%, 31%)
HSVhsv(114, 75%, 50%)
CMYKcmyk(66.9%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.68, -43.93, 41.87)
CIE-LCHlch(46.68, 60.69, 136.37°)
OKLaboklab(52.58% -0.1198 0.0949)
OKLCHoklch(52.58% 0.153 141.6)
XYZxyz(8.8045, 15.7744, 3.9470)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F20 #75207F
analogous
#597F20 #2A7F20 #207F45
triadic
#2A7F20 #202A7F #7F202A
tetradic
#2A7F20 #20597F #75207F #7F4520
square
#2A7F20 #20597F #75207F #7F4520
split-complementary
#2A7F20 #45207F #7F2059
monochromatic
#0A1D07 #1A4E14 #2A7F20 #3AB02C #57D148

Accessibility & contrast

On white

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

On black

4.15
#2A7F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7F20#FFFFFF#000000##FFFFFF
##2A7F201.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#1A7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f20;
/* rgb */ color: rgb(42, 127, 32);
/* oklch */ color: oklch(52.6% 0.153 141.6);
Tailwind
colors: {
  custom: {
    50: '#70a562',
    500: '#2a7f20',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f20;
$custom-light: #70a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f20",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 113.684,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52583,
    "c": 0.15288,
    "h": 141.6
  },
  "luminance": 0.15775
}

Semantic roles & 50–950 ramp

primary
#2A7F20
secondary
#A749B2
accent
#45E3D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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