#2A794C#2A794C

#2A794C is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.6% C 0.105 H 154.9°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#2A794C
RGBrgb(42, 121, 76)
HSLhsl(146, 48%, 32%)
HSVhsv(146, 65%, 47%)
CMYKcmyk(65.3%, 0%, 37.2%, 52.5%)
CIE-LABlab(45.20, -35.11, 17.79)
CIE-LCHlch(45.20, 39.36, 153.13°)
OKLaboklab(51.55% -0.0952 0.0446)
OKLCHoklch(51.55% 0.105 154.9)
XYZxyz(9.0959, 14.6879, 9.1918)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A794C #792A57
analogous
#30792A #2A794C #2A7974
triadic
#2A794C #4C2A79 #794C2A
tetradic
#2A794C #2A3079 #792A57 #79742A
square
#2A794C #2A3079 #792A57 #79742A
split-complementary
#2A794C #742A79 #792A30
monochromatic
#0A1E13 #1A4C2F #2A794C #3AA669 #58C587

Accessibility & contrast

On white

5.33
#2A794C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#2A794C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A794C
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A794C#FFFFFF#000000##FFFFFF
##2A794C1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F49
Deuteranopia (green-blind)
#6E684F
Tritanopia (blue-blind)
#05786D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a794c;
/* rgb */ color: rgb(42, 121, 76);
/* oklch */ color: oklch(51.6% 0.105 154.9);
Tailwind
colors: {
  custom: {
    50: '#6da07e',
    500: '#2a794c',
    950: '#000000',
  },
}
SCSS
$custom: #2a794c;
$custom-light: #6da07e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a794c",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 76
  },
  "hsl": {
    "h": 145.823,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51552,
    "c": 0.10511,
    "h": 154.9
  },
  "luminance": 0.14689
}

Semantic roles & 50–950 ramp

primary
#2A794C
secondary
#AB5485
accent
#509DD8
background
#F6F9F7
surface
#ECF2EE
border
#C7CCC9
text
#080F0A
muted
#7B7E7C

Preview Lab

Preview with #2A794C

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

Preview Lab → · Contrast checker → · Palette generator →

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