#2A7A4E#2A7A4E

#2A7A4E is a mid, moderate green. Relative luminance 0.150; OKLCH L 51.9% C 0.105 H 155.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2A7A4E
RGBrgb(42, 122, 78)
HSLhsl(147, 49%, 32%)
HSVhsv(147, 66%, 48%)
CMYKcmyk(65.6%, 0%, 36.1%, 52.2%)
CIE-LABlab(45.58, -35.12, 17.14)
CIE-LCHlch(45.58, 39.08, 153.98°)
OKLaboklab(51.87% -0.0953 0.0431)
OKLCHoklch(51.87% 0.105 155.7)
XYZxyz(9.2887, 14.9604, 9.6044)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A4E #7A2A56
analogous
#2E7A2A #2A7A4E #2A7A76
triadic
#2A7A4E #4E2A7A #7A4E2A
tetradic
#2A7A4E #2A2E7A #7A2A56 #7A762A
square
#2A7A4E #2A2E7A #7A2A56 #7A762A
split-complementary
#2A7A4E #762A7A #7A2A2E
monochromatic
#0B1F14 #1A4C31 #2A7A4E #3AA86B #59C68A

Accessibility & contrast

On white

5.26
#2A7A4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2A7A4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A4E
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A4E#FFFFFF#000000##FFFFFF
##2A7A4E1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#79704B
Deuteranopia (green-blind)
#6F6951
Tritanopia (blue-blind)
#02796F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7a4e;
/* rgb */ color: rgb(42, 122, 78);
/* oklch */ color: oklch(51.9% 0.105 155.7);
Tailwind
colors: {
  custom: {
    50: '#6da180',
    500: '#2a7a4e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a4e;
$custom-light: #6da180;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a4e",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 78
  },
  "hsl": {
    "h": 147,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51873,
    "c": 0.1046,
    "h": 155.7
  },
  "luminance": 0.14961
}

Semantic roles & 50–950 ramp

primary
#2A7A4E
secondary
#AB5584
accent
#4F9BD8
background
#F6FAF7
surface
#ECF3EE
border
#C7CDC9
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #2A7A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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