#2A7C2E#2A7C2E

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

Color values

HEX#2A7C2E
RGBrgb(42, 124, 46)
HSLhsl(123, 49%, 33%)
HSVhsv(123, 66%, 49%)
CMYKcmyk(66.1%, 0%, 62.9%, 51.4%)
CIE-LABlab(45.78, -41.33, 34.68)
CIE-LCHlch(45.78, 53.95, 140.00°)
OKLaboklab(51.88% -0.112 0.0814)
OKLCHoklch(51.88% 0.139 144)
XYZxyz(8.6551, 15.1039, 5.0435)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C2E #7C2A78
analogous
#4F7C2A #2A7C2E #2A7C57
triadic
#2A7C2E #2E2A7C #7C2E2A
tetradic
#2A7C2E #2A4F7C #7C2A78 #7C572A
square
#2A7C2E #2A4F7C #7C2A78 #7C572A
split-complementary
#2A7C2E #572A7C #7C2A4F
monochromatic
#0B210C #1B4E1D #2A7C2E #39AA3F #59C75F

Accessibility & contrast

On white

5.22
#2A7C2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2A7C2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C2E
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C2E#FFFFFF#000000##FFFFFF
##2A7C2E1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7126
Deuteranopia (green-blind)
#746A34
Tritanopia (blue-blind)
#17796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c2e;
/* rgb */ color: rgb(42, 124, 46);
/* oklch */ color: oklch(51.9% 0.139 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ea36a',
    500: '#2a7c2e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c2e;
$custom-light: #6ea36a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c2e",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 122.927,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51878,
    "c": 0.13851,
    "h": 144
  },
  "luminance": 0.15105
}

Semantic roles & 50–950 ramp

primary
#2A7C2E
secondary
#AD55A8
accent
#4FD2D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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