#2A7A32#2A7A32

#2A7A32 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.132 H 145.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2A7A32
RGBrgb(42, 122, 50)
HSLhsl(126, 49%, 32%)
HSVhsv(126, 66%, 48%)
CMYKcmyk(65.6%, 0%, 59%, 52.2%)
CIE-LABlab(45.14, -40.02, 31.95)
CIE-LCHlch(45.14, 51.21, 141.40°)
OKLaboklab(51.37% -0.1083 0.0759)
OKLCHoklch(51.37% 0.132 145)
XYZxyz(8.4896, 14.6408, 5.3955)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A32 #7A2A72
analogous
#4A7A2A #2A7A32 #2A7A5A
triadic
#2A7A32 #322A7A #7A322A
tetradic
#2A7A32 #2A4A7A #7A2A72 #7A5A2A
square
#2A7A32 #2A4A7A #7A2A72 #7A5A2A
split-complementary
#2A7A32 #5A2A7A #7A2A4A
monochromatic
#0B1F0D #1A4C1F #2A7A32 #3AA845 #59C664

Accessibility & contrast

On white

5.35
#2A7A32 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2A7A32 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A32
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A32#FFFFFF#000000##FFFFFF
##2A7A321.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F2B
Deuteranopia (green-blind)
#726838
Tritanopia (blue-blind)
#17776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a32;
/* rgb */ color: rgb(42, 122, 50);
/* oklch */ color: oklch(51.4% 0.132 145.0);
Tailwind
colors: {
  custom: {
    50: '#6ea16c',
    500: '#2a7a32',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a32;
$custom-light: #6ea16c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a32",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 50
  },
  "hsl": {
    "h": 126,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51365,
    "c": 0.13226,
    "h": 145
  },
  "luminance": 0.14642
}

Semantic roles & 50–950 ramp

primary
#2A7A32
secondary
#AB55A3
accent
#4FCBD8
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7A32

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

Preview Lab → · Contrast checker → · Palette generator →

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