#2A7A2E#2A7A2E

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

Color values

HEX#2A7A2E
RGBrgb(42, 122, 46)
HSLhsl(123, 49%, 32%)
HSVhsv(123, 66%, 48%)
CMYKcmyk(65.6%, 0%, 62.3%, 52.2%)
CIE-LABlab(45.09, -40.55, 33.90)
CIE-LCHlch(45.09, 52.85, 140.11°)
OKLaboklab(51.31% -0.1099 0.0797)
OKLCHoklch(51.31% 0.136 144)
XYZxyz(8.4070, 14.6077, 4.9608)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A2E #7A2A76
analogous
#4E7A2A #2A7A2E #2A7A56
triadic
#2A7A2E #2E2A7A #7A2E2A
tetradic
#2A7A2E #2A4E7A #7A2A76 #7A562A
square
#2A7A2E #2A4E7A #7A2A76 #7A562A
split-complementary
#2A7A2E #562A7A #7A2A4E
monochromatic
#0B1F0C #1A4C1D #2A7A2E #3AA83F #59C65E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7A2E#FFFFFF#000000##FFFFFF
##2A7A2E1.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)
#7C6F26
Deuteranopia (green-blind)
#726834
Tritanopia (blue-blind)
#18776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a2e;
/* rgb */ color: rgb(42, 122, 46);
/* oklch */ color: oklch(51.3% 0.136 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ea169',
    500: '#2a7a2e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a2e;
$custom-light: #6ea169;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a2e",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 46
  },
  "hsl": {
    "h": 123,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51313,
    "c": 0.13581,
    "h": 144
  },
  "luminance": 0.14609
}

Semantic roles & 50–950 ramp

primary
#2A7A2E
secondary
#AB55A7
accent
#4FD1D8
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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