#2F7D2E#2F7D2E

#2F7D2E is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.138 H 143.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#2F7D2E
RGBrgb(47, 125, 46)
HSLhsl(119, 46%, 34%)
HSVhsv(119, 63%, 49%)
CMYKcmyk(62.4%, 0%, 63.2%, 51%)
CIE-LABlab(46.27, -40.52, 35.29)
CIE-LCHlch(46.27, 53.73, 138.95°)
OKLaboklab(52.33% -0.1101 0.0827)
OKLCHoklch(52.33% 0.138 143.1)
XYZxyz(8.9985, 15.4680, 5.0956)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D2E #7C2E7D
analogous
#567D2E #2F7D2E #2E7D54
triadic
#2F7D2E #2E2F7D #7D2E2F
tetradic
#2F7D2E #2E567D #7C2E7D #7D542E
square
#2F7D2E #2E567D #7C2E7D #7D542E
split-complementary
#2F7D2E #542E7D #7D2E56
monochromatic
#0D240D #1E501E #2F7D2E #40AA3E #62C561

Accessibility & contrast

On white

5.13
#2F7D2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#2F7D2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D2E
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D2E#FFFFFF#000000##FFFFFF
##2F7D2E1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807225
Deuteranopia (green-blind)
#766B34
Tritanopia (blue-blind)
#21796C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7d2e;
/* rgb */ color: rgb(47, 125, 46);
/* oklch */ color: oklch(52.3% 0.138 143.1);
Tailwind
colors: {
  custom: {
    50: '#71a36a',
    500: '#2f7d2e',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d2e;
$custom-light: #71a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d2e",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 119.241,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.52327,
    "c": 0.1377,
    "h": 143.1
  },
  "luminance": 0.15469
}

Semantic roles & 50–950 ramp

primary
#2F7D2E
secondary
#AA5BAB
accent
#52D6D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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