#2A7B20#2A7B20

#2A7B20 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.4% C 0.148 H 141.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2A7B20
RGBrgb(42, 123, 32)
HSLhsl(113, 59%, 30%)
HSVhsv(113, 74%, 48%)
CMYKcmyk(65.9%, 0%, 74%, 51.8%)
CIE-LABlab(45.31, -42.44, 40.47)
CIE-LCHlch(45.31, 58.64, 136.36°)
OKLaboklab(51.45% -0.1158 0.092)
OKLCHoklch(51.45% 0.148 141.5)
XYZxyz(8.2981, 14.7616, 3.7782)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B20 #71207B
analogous
#577B20 #2A7B20 #207B44
triadic
#2A7B20 #202A7B #7B202A
tetradic
#2A7B20 #20577B #71207B #7B4420
square
#2A7B20 #20577B #71207B #7B4420
split-complementary
#2A7B20 #44207B #7B2057
monochromatic
#091A07 #194A13 #2A7B20 #3BAC2D #55CF46

Accessibility & contrast

On white

5.31
#2A7B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2A7B20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B20
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B20#FFFFFF#000000##FFFFFF
##2A7B201.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F11
Deuteranopia (green-blind)
#746929
Tritanopia (blue-blind)
#1C7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b20;
/* rgb */ color: rgb(42, 123, 32);
/* oklch */ color: oklch(51.4% 0.148 141.5);
Tailwind
colors: {
  custom: {
    50: '#6fa261',
    500: '#2a7b20',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b20;
$custom-light: #6fa261;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b20",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 113.407,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51448,
    "c": 0.14791,
    "h": 141.5
  },
  "luminance": 0.14762
}

Semantic roles & 50–950 ramp

primary
#2A7B20
secondary
#A349AE
accent
#46E2D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7B20

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

Preview Lab → · Contrast checker → · Palette generator →

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