#2A7A2F#2A7A2F

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

Color values

HEX#2A7A2F
RGBrgb(42, 122, 47)
HSLhsl(124, 49%, 32%)
HSVhsv(124, 66%, 48%)
CMYKcmyk(65.6%, 0%, 61.5%, 52.2%)
CIE-LABlab(45.10, -40.42, 33.42)
CIE-LCHlch(45.10, 52.45, 140.42°)
OKLaboklab(51.33% -0.1095 0.0788)
OKLCHoklch(51.33% 0.135 144.3)
XYZxyz(8.4270, 14.6157, 5.0658)
Luminance0.1462 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A2F #7A2A75
analogous
#4D7A2A #2A7A2F #2A7A57
triadic
#2A7A2F #2F2A7A #7A2F2A
tetradic
#2A7A2F #2A4D7A #7A2A75 #7A572A
square
#2A7A2F #2A4D7A #7A2A75 #7A572A
split-complementary
#2A7A2F #572A7A #7A2A4D
monochromatic
#0B1F0C #1A4C1D #2A7A2F #3AA841 #59C65F

Accessibility & contrast

On white

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

On black

3.92
#2A7A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7A2F#FFFFFF#000000##FFFFFF
##2A7A2F1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F27
Deuteranopia (green-blind)
#726835
Tritanopia (blue-blind)
#18776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a2f;
/* rgb */ color: rgb(42, 122, 47);
/* oklch */ color: oklch(51.3% 0.135 144.3);
Tailwind
colors: {
  custom: {
    50: '#6ea16a',
    500: '#2a7a2f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a2f;
$custom-light: #6ea16a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a2f",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 123.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51325,
    "c": 0.13494,
    "h": 144.3
  },
  "luminance": 0.14617
}

Semantic roles & 50–950 ramp

primary
#2A7A2F
secondary
#AB55A6
accent
#4FD0D8
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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