#2F7D2B#2F7D2B

#2F7D2B is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.3% C 0.140 H 142.5°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#2F7D2B
RGBrgb(47, 125, 43)
HSLhsl(117, 49%, 33%)
HSVhsv(117, 66%, 49%)
CMYKcmyk(62.4%, 0%, 65.6%, 51%)
CIE-LABlab(46.24, -40.87, 36.68)
CIE-LCHlch(46.24, 54.91, 138.09°)
OKLaboklab(52.29% -0.1112 0.0853)
OKLCHoklch(52.29% 0.14 142.5)
XYZxyz(8.9415, 15.4452, 4.7950)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D2B #792B7D
analogous
#587D2B #2F7D2B #2B7D50
triadic
#2F7D2B #2B2F7D #7D2B2F
tetradic
#2F7D2B #2B587D #792B7D #7D502B
square
#2F7D2B #2B587D #792B7D #7D502B
split-complementary
#2F7D2B #502B7D #7D2B58
monochromatic
#0D220C #1E4F1B #2F7D2B #40AB3B #61C75C

Accessibility & contrast

On white

5.14
#2F7D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7D2B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D2B#FFFFFF#000000##FFFFFF
##2F7D2B1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807221
Deuteranopia (green-blind)
#766B32
Tritanopia (blue-blind)
#22796C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7d2b;
/* rgb */ color: rgb(47, 125, 43);
/* oklch */ color: oklch(52.3% 0.140 142.5);
Tailwind
colors: {
  custom: {
    50: '#71a368',
    500: '#2f7d2b',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d2b;
$custom-light: #71a368;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d2b",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 117.073,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52292,
    "c": 0.1402,
    "h": 142.5
  },
  "luminance": 0.15446
}

Semantic roles & 50–950 ramp

primary
#2F7D2B
secondary
#A857AD
accent
#4FD8D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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