#2F794E#2F794E

#2F794E is a mid, moderate green. Relative luminance 0.148; OKLCH L 51.8% C 0.101 H 155.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2F794E
RGBrgb(47, 121, 78)
HSLhsl(145, 44%, 33%)
HSVhsv(145, 61%, 47%)
CMYKcmyk(61.2%, 0%, 35.5%, 52.5%)
CIE-LABlab(45.40, -33.55, 16.92)
CIE-LCHlch(45.40, 37.58, 153.23°)
OKLaboklab(51.77% -0.0911 0.0426)
OKLCHoklch(51.77% 0.101 155)
XYZxyz(9.3840, 14.8282, 9.5739)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F794E #792F5A
analogous
#35792F #2F794E #2F7973
triadic
#2F794E #4E2F79 #794E2F
tetradic
#2F794E #2F3579 #792F5A #79732F
square
#2F794E #2F3579 #792F5A #79732F
split-complementary
#2F794E #732F79 #792F35
monochromatic
#0D2115 #1E4D32 #2F794E #40A56A #61C289

Accessibility & contrast

On white

5.30
#2F794E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2F794E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F794E
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F794E#FFFFFF#000000##FFFFFF
##2F794E1.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#79704B
Deuteranopia (green-blind)
#6F6951
Tritanopia (blue-blind)
#15786E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f794e;
/* rgb */ color: rgb(47, 121, 78);
/* oklch */ color: oklch(51.8% 0.101 155.0);
Tailwind
colors: {
  custom: {
    50: '#6fa080',
    500: '#2f794e',
    950: '#000000',
  },
}
SCSS
$custom: #2f794e;
$custom-light: #6fa080;
$custom-dark: #000000;
JSON
{
  "hex": "#2f794e",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 78
  },
  "hsl": {
    "h": 145.135,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51768,
    "c": 0.10061,
    "h": 155
  },
  "luminance": 0.14829
}

Semantic roles & 50–950 ramp

primary
#2F794E
secondary
#A85B88
accent
#549ED4
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#080F0A
muted
#7B7E7C

Preview Lab

Preview with #2F794E

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

Preview Lab → · Contrast checker → · Palette generator →

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