#2F8731#2F8731

#2F8731 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.2% C 0.149 H 143.6°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#2F8731
RGBrgb(47, 135, 49)
HSLhsl(121, 48%, 36%)
HSVhsv(121, 65%, 53%)
CMYKcmyk(65.2%, 0%, 63.7%, 47.1%)
CIE-LABlab(49.68, -44.04, 37.73)
CIE-LCHlch(49.68, 57.99, 139.41°)
OKLaboklab(55.16% -0.1195 0.0882)
OKLCHoklch(55.16% 0.149 143.6)
XYZxyz(10.3900, 18.1530, 5.8615)
Luminance0.1815 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8731 #872F85
analogous
#59872F #2F8731 #2F875D
triadic
#2F8731 #312F87 #87312F
tetradic
#2F8731 #2F5987 #872F85 #875D2F
square
#2F8731 #2F5987 #872F85 #875D2F
split-complementary
#2F8731 #5D2F87 #872F59
monochromatic
#0F2C10 #1F5A21 #2F8731 #3FB441 #66CA69

Accessibility & contrast

On white

4.53
#2F8731 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#2F8731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8731
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8731#FFFFFF#000000##000000
##2F87311.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B27
Deuteranopia (green-blind)
#7F7338
Tritanopia (blue-blind)
#1C8375
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f8731;
/* rgb */ color: rgb(47, 135, 49);
/* oklch */ color: oklch(55.2% 0.149 143.6);
Tailwind
colors: {
  custom: {
    50: '#73ab6d',
    500: '#2f8731',
    950: '#000000',
  },
}
SCSS
$custom: #2f8731;
$custom-light: #73ab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8731",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 121.364,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.55155,
    "c": 0.14853,
    "h": 143.6
  },
  "luminance": 0.18154
}

Semantic roles & 50–950 ramp

primary
#2F8731
secondary
#B161AF
accent
#50D5D8
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2F8731

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

Preview Lab → · Contrast checker → · Palette generator →

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