#2F7E2B#2F7E2B

#2F7E2B is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.6% C 0.142 H 142.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2F7E2B
RGBrgb(47, 126, 43)
HSLhsl(117, 49%, 33%)
HSVhsv(117, 66%, 49%)
CMYKcmyk(62.7%, 0%, 65.9%, 50.6%)
CIE-LABlab(46.58, -41.26, 37.06)
CIE-LCHlch(46.58, 55.46, 138.07°)
OKLaboklab(52.57% -0.1123 0.0862)
OKLCHoklch(52.57% 0.142 142.5)
XYZxyz(9.0687, 15.6996, 4.8375)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E2B #7A2B7E
analogous
#587E2B #2F7E2B #2B7E50
triadic
#2F7E2B #2B2F7E #7E2B2F
tetradic
#2F7E2B #2B587E #7A2B7E #7E502B
square
#2F7E2B #2B587E #7A2B7E #7E502B
split-complementary
#2F7E2B #502B7E #7E2B58
monochromatic
#0D230C #1E501B #2F7E2B #40AC3B #61C75C

Accessibility & contrast

On white

5.07
#2F7E2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2F7E2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E2B
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E2B#FFFFFF#000000##FFFFFF
##2F7E2B1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817221
Deuteranopia (green-blind)
#776C32
Tritanopia (blue-blind)
#217A6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e2b;
/* rgb */ color: rgb(47, 126, 43);
/* oklch */ color: oklch(52.6% 0.142 142.5);
Tailwind
colors: {
  custom: {
    50: '#71a468',
    500: '#2f7e2b',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e2b;
$custom-light: #71a468;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e2b",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 117.108,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52573,
    "c": 0.14153,
    "h": 142.5
  },
  "luminance": 0.157
}

Semantic roles & 50–950 ramp

primary
#2F7E2B
secondary
#A958AD
accent
#4FD9D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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