#2F794B#2F794B

#2F794B is a mid, moderate green. Relative luminance 0.148; OKLCH L 51.7% C 0.104 H 153.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2F794B
RGBrgb(47, 121, 75)
HSLhsl(143, 44%, 33%)
HSVhsv(143, 61%, 47%)
CMYKcmyk(61.2%, 0%, 38%, 52.5%)
CIE-LABlab(45.34, -34.17, 18.57)
CIE-LCHlch(45.34, 38.89, 151.47°)
OKLaboklab(51.7% -0.0926 0.0465)
OKLCHoklch(51.7% 0.104 153.3)
XYZxyz(9.2789, 14.7862, 9.0203)
Luminance0.1479 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F794B #792F5D
analogous
#38792F #2F794B #2F7970
triadic
#2F794B #4B2F79 #794B2F
tetradic
#2F794B #2F3879 #792F5D #79702F
square
#2F794B #2F3879 #792F5D #79702F
split-complementary
#2F794B #702F79 #792F38
monochromatic
#0D2114 #1E4D30 #2F794B #40A566 #61C285

Accessibility & contrast

On white

5.31
#2F794B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2F794B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F794B
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F794B#FFFFFF#000000##FFFFFF
##2F794B1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#797048
Deuteranopia (green-blind)
#6F694E
Tritanopia (blue-blind)
#17776D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f794b;
/* rgb */ color: rgb(47, 121, 75);
/* oklch */ color: oklch(51.7% 0.104 153.3);
Tailwind
colors: {
  custom: {
    50: '#6fa07d',
    500: '#2f794b',
    950: '#000000',
  },
}
SCSS
$custom: #2f794b;
$custom-light: #6fa07d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f794b",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 75
  },
  "hsl": {
    "h": 142.703,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51701,
    "c": 0.10367,
    "h": 153.3
  },
  "luminance": 0.14787
}

Semantic roles & 50–950 ramp

primary
#2F794B
secondary
#A85B8B
accent
#54A3D4
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2F794B

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

Preview Lab → · Contrast checker → · Palette generator →

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