#2A7A3C#2A7A3C

#2A7A3C is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.5% C 0.123 H 147.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#2A7A3C
RGBrgb(42, 122, 60)
HSLhsl(134, 49%, 32%)
HSVhsv(134, 66%, 48%)
CMYKcmyk(65.6%, 0%, 50.8%, 52.2%)
CIE-LABlab(45.27, -38.51, 26.84)
CIE-LCHlch(45.27, 46.94, 145.12°)
OKLaboklab(51.52% -0.104 0.0652)
OKLCHoklch(51.52% 0.123 147.9)
XYZxyz(8.7294, 14.7367, 6.6585)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A3C #7A2A68
analogous
#407A2A #2A7A3C #2A7A64
triadic
#2A7A3C #3C2A7A #7A3C2A
tetradic
#2A7A3C #2A407A #7A2A68 #7A642A
square
#2A7A3C #2A407A #7A2A68 #7A642A
split-complementary
#2A7A3C #642A7A #7A2A40
monochromatic
#0B1F0F #1A4C26 #2A7A3C #3AA852 #59C671

Accessibility & contrast

On white

5.32
#2A7A3C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7A3C
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A3C#FFFFFF#000000##FFFFFF
##2A7A3C1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F37
Deuteranopia (green-blind)
#716840
Tritanopia (blue-blind)
#12776B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a3c;
/* rgb */ color: rgb(42, 122, 60);
/* oklch */ color: oklch(51.5% 0.123 147.9);
Tailwind
colors: {
  custom: {
    50: '#6da173',
    500: '#2a7a3c',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a3c;
$custom-light: #6da173;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a3c",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 60
  },
  "hsl": {
    "h": 133.5,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51519,
    "c": 0.12274,
    "h": 147.9
  },
  "luminance": 0.14738
}

Semantic roles & 50–950 ramp

primary
#2A7A3C
secondary
#AB5598
accent
#4FBAD8
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #2A7A3C

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

Preview Lab → · Contrast checker → · Palette generator →

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