#2F7A4E#2F7A4E

#2F7A4E is a mid, moderate green. Relative luminance 0.151; OKLCH L 52.0% C 0.102 H 154.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2F7A4E
RGBrgb(47, 122, 78)
HSLhsl(145, 44%, 33%)
HSVhsv(145, 61%, 48%)
CMYKcmyk(61.5%, 0%, 36.1%, 52.2%)
CIE-LABlab(45.73, -34.00, 17.38)
CIE-LCHlch(45.73, 38.18, 152.93°)
OKLaboklab(52.04% -0.0923 0.0437)
OKLCHoklch(52.04% 0.102 154.7)
XYZxyz(9.5062, 15.0725, 9.6146)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A4E #7A2F5B
analogous
#357A2F #2F7A4E #2F7A73
triadic
#2F7A4E #4E2F7A #7A4E2F
tetradic
#2F7A4E #2F357A #7A2F5B #7A732F
square
#2F7A4E #2F357A #7A2F5B #7A732F
split-complementary
#2F7A4E #732F7A #7A2F35
monochromatic
#0D2216 #1E4E32 #2F7A4E #40A66A #61C289

Accessibility & contrast

On white

5.23
#2F7A4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2F7A4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A4E
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A4E#FFFFFF#000000##FFFFFF
##2F7A4E1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A714B
Deuteranopia (green-blind)
#706951
Tritanopia (blue-blind)
#14796F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7a4e;
/* rgb */ color: rgb(47, 122, 78);
/* oklch */ color: oklch(52.0% 0.102 154.7);
Tailwind
colors: {
  custom: {
    50: '#6fa180',
    500: '#2f7a4e',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a4e;
$custom-light: #6fa180;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a4e",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 78
  },
  "hsl": {
    "h": 144.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52043,
    "c": 0.10214,
    "h": 154.7
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#2F7A4E
secondary
#A95C89
accent
#549FD4
background
#F7FAF7
surface
#EDF3EE
border
#C8CDC9
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #2F7A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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