#2A794B#2A794B

#2A794B is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.5% C 0.106 H 154.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2A794B
RGBrgb(42, 121, 75)
HSLhsl(145, 48%, 32%)
HSVhsv(145, 65%, 47%)
CMYKcmyk(65.3%, 0%, 38%, 52.5%)
CIE-LABlab(45.18, -35.31, 18.34)
CIE-LCHlch(45.18, 39.79, 152.56°)
OKLaboklab(51.53% -0.0957 0.0459)
OKLCHoklch(51.53% 0.106 154.3)
XYZxyz(9.0615, 14.6741, 9.0101)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A794B #792A58
analogous
#31792A #2A794B #2A7973
triadic
#2A794B #4B2A79 #794B2A
tetradic
#2A794B #2A3179 #792A58 #79732A
square
#2A794B #2A3179 #792A58 #79732A
split-complementary
#2A794B #732A79 #792A31
monochromatic
#0A1E13 #1A4C2F #2A794B #3AA667 #58C586

Accessibility & contrast

On white

5.34
#2A794B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2A794B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A794B
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A794B#FFFFFF#000000##FFFFFF
##2A794B1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F48
Deuteranopia (green-blind)
#6E684E
Tritanopia (blue-blind)
#06786D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a794b;
/* rgb */ color: rgb(42, 121, 75);
/* oklch */ color: oklch(51.5% 0.106 154.3);
Tailwind
colors: {
  custom: {
    50: '#6da07d',
    500: '#2a794b',
    950: '#000000',
  },
}
SCSS
$custom: #2a794b;
$custom-light: #6da07d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a794b",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 75
  },
  "hsl": {
    "h": 145.063,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5153,
    "c": 0.10612,
    "h": 154.3
  },
  "luminance": 0.14675
}

Semantic roles & 50–950 ramp

primary
#2A794B
secondary
#AB5487
accent
#509FD8
background
#F6F9F7
surface
#ECF2EE
border
#C7CCC9
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2A794B

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

Preview Lab → · Contrast checker → · Palette generator →

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