#2A7C32#2A7C32

#2A7C32 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.135 H 144.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2A7C32
RGBrgb(42, 124, 50)
HSLhsl(126, 49%, 33%)
HSVhsv(126, 66%, 49%)
CMYKcmyk(66.1%, 0%, 59.7%, 51.4%)
CIE-LABlab(45.82, -40.81, 32.75)
CIE-LCHlch(45.82, 52.33, 141.25°)
OKLaboklab(51.93% -0.1105 0.0776)
OKLCHoklch(51.93% 0.135 144.9)
XYZxyz(8.7377, 15.1370, 5.4782)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C32 #7C2A74
analogous
#4B7C2A #2A7C32 #2A7C5B
triadic
#2A7C32 #322A7C #7C322A
tetradic
#2A7C32 #2A4B7C #7C2A74 #7C5B2A
square
#2A7C32 #2A4B7C #7C2A74 #7C5B2A
split-complementary
#2A7C32 #5B2A7C #7C2A4B
monochromatic
#0B210D #1B4E20 #2A7C32 #39AA44 #59C764

Accessibility & contrast

On white

5.21
#2A7C32 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2A7C32 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C32
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C32#FFFFFF#000000##FFFFFF
##2A7C321.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E712B
Deuteranopia (green-blind)
#746A38
Tritanopia (blue-blind)
#16796C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c32;
/* rgb */ color: rgb(42, 124, 50);
/* oklch */ color: oklch(51.9% 0.135 144.9);
Tailwind
colors: {
  custom: {
    50: '#6ea36c',
    500: '#2a7c32',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c32;
$custom-light: #6ea36c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c32",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 50
  },
  "hsl": {
    "h": 125.854,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51929,
    "c": 0.13501,
    "h": 144.9
  },
  "luminance": 0.15138
}

Semantic roles & 50–950 ramp

primary
#2A7C32
secondary
#AD55A4
accent
#4FCBD9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7C32

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

Preview Lab → · Contrast checker → · Palette generator →

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