#2F8738#2F8738

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

Color values

HEX#2F8738
RGBrgb(47, 135, 56)
HSLhsl(126, 48%, 36%)
HSVhsv(126, 65%, 53%)
CMYKcmyk(65.2%, 0%, 58.5%, 47.1%)
CIE-LABlab(49.76, -43.15, 34.41)
CIE-LCHlch(49.76, 55.19, 141.43°)
OKLaboklab(55.24% -0.1168 0.0817)
OKLCHoklch(55.24% 0.143 145)
XYZxyz(10.5494, 18.2168, 6.7009)
Luminance0.1822 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8738 #872F7E
analogous
#52872F #2F8738 #2F8764
triadic
#2F8738 #382F87 #87382F
tetradic
#2F8738 #2F5287 #872F7E #87642F
square
#2F8738 #2F5287 #872F7E #87642F
split-complementary
#2F8738 #642F87 #872F52
monochromatic
#0F2C12 #1F5A25 #2F8738 #3FB44B #66CA71

Accessibility & contrast

On white

4.52
#2F8738 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#2F8738 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8738
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8738#FFFFFF#000000##000000
##2F87381.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897B30
Deuteranopia (green-blind)
#7E733E
Tritanopia (blue-blind)
#1A8476
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f8738;
/* rgb */ color: rgb(47, 135, 56);
/* oklch */ color: oklch(55.2% 0.143 145.0);
Tailwind
colors: {
  custom: {
    50: '#73ab71',
    500: '#2f8738',
    950: '#000000',
  },
}
SCSS
$custom: #2f8738;
$custom-light: #73ab71;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8738",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 56
  },
  "hsl": {
    "h": 126.136,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.55244,
    "c": 0.14253,
    "h": 145
  },
  "luminance": 0.18218
}

Semantic roles & 50–950 ramp

primary
#2F8738
secondary
#B161A9
accent
#50CAD8
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #2F8738

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

Preview Lab → · Contrast checker → · Palette generator →

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