#2F7D2D#2F7D2D

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

Color values

HEX#2F7D2D
RGBrgb(47, 125, 45)
HSLhsl(119, 47%, 33%)
HSVhsv(119, 64%, 49%)
CMYKcmyk(62.4%, 0%, 64%, 51%)
CIE-LABlab(46.26, -40.63, 35.76)
CIE-LCHlch(46.26, 54.13, 138.65°)
OKLaboklab(52.32% -0.1105 0.0836)
OKLCHoklch(52.32% 0.139 142.9)
XYZxyz(8.9791, 15.4602, 4.9930)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D2D #7B2D7D
analogous
#577D2D #2F7D2D #2D7D53
triadic
#2F7D2D #2D2F7D #7D2D2F
tetradic
#2F7D2D #2D577D #7B2D7D #7D532D
square
#2F7D2D #2D577D #7B2D7D #7D532D
split-complementary
#2F7D2D #532D7D #7D2D57
monochromatic
#0D230D #1E501D #2F7D2D #40AA3D #62C55F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7D2D#FFFFFF#000000##FFFFFF
##2F7D2D1.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)
#807224
Deuteranopia (green-blind)
#766B34
Tritanopia (blue-blind)
#21796C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7d2d;
/* rgb */ color: rgb(47, 125, 45);
/* oklch */ color: oklch(52.3% 0.139 142.9);
Tailwind
colors: {
  custom: {
    50: '#71a369',
    500: '#2f7d2d',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d2d;
$custom-light: #71a369;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d2d",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 45
  },
  "hsl": {
    "h": 118.5,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52315,
    "c": 0.13854,
    "h": 142.9
  },
  "luminance": 0.15461
}

Semantic roles & 50–950 ramp

primary
#2F7D2D
secondary
#AA5AAC
accent
#51D7D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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