#2A792A#2A792A

#2A792A is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.138 H 143.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2A792A
RGBrgb(42, 121, 42)
HSLhsl(120, 48%, 32%)
HSVhsv(120, 65%, 47%)
CMYKcmyk(65.3%, 0%, 65.3%, 52.5%)
CIE-LABlab(44.71, -40.65, 35.40)
CIE-LCHlch(44.71, 53.90, 138.95°)
OKLaboklab(50.98% -0.1104 0.0825)
OKLCHoklch(50.98% 0.138 143.2)
XYZxyz(8.2097, 14.3333, 4.5240)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A792A #792A79
analogous
#52792A #2A792A #2A7952
triadic
#2A792A #2A2A79 #792A2A
tetradic
#2A792A #2A5279 #792A79 #79522A
square
#2A792A #2A5279 #792A79 #79522A
split-complementary
#2A792A #522A79 #792A52
monochromatic
#0A1E0A #1A4C1A #2A792A #3AA63A #58C558

Accessibility & contrast

On white

5.43
#2A792A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2A792A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A792A
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A792A#FFFFFF#000000##FFFFFF
##2A792A1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E21
Deuteranopia (green-blind)
#726731
Tritanopia (blue-blind)
#1A7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a792a;
/* rgb */ color: rgb(42, 121, 42);
/* oklch */ color: oklch(51.0% 0.138 143.2);
Tailwind
colors: {
  custom: {
    50: '#6ea067',
    500: '#2a792a',
    950: '#000000',
  },
}
SCSS
$custom: #2a792a;
$custom-light: #6ea067;
$custom-dark: #000000;
JSON
{
  "hex": "#2a792a",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 42
  },
  "hsl": {
    "h": 120,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.50981,
    "c": 0.13785,
    "h": 143.2
  },
  "luminance": 0.14334
}

Semantic roles & 50–950 ramp

primary
#2A792A
secondary
#AB54AB
accent
#50D8D8
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2A792A

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

Preview Lab → · Contrast checker → · Palette generator →

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