#2F7938#2F7938

#2F7938 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.123 H 145.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2F7938
RGBrgb(47, 121, 56)
HSLhsl(127, 44%, 33%)
HSVhsv(127, 61%, 47%)
CMYKcmyk(61.2%, 0%, 53.7%, 52.5%)
CIE-LABlab(45.03, -37.53, 28.73)
CIE-LCHlch(45.03, 47.27, 142.56°)
OKLaboklab(51.35% -0.1016 0.0692)
OKLCHoklch(51.35% 0.123 145.7)
XYZxyz(8.7229, 14.5638, 6.0920)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7938 #792F70
analogous
#4B792F #2F7938 #2F795D
triadic
#2F7938 #382F79 #79382F
tetradic
#2F7938 #2F4B79 #792F70 #795D2F
square
#2F7938 #2F4B79 #792F70 #795D2F
split-complementary
#2F7938 #5D2F79 #792F4B
monochromatic
#0D210F #1E4D24 #2F7938 #40A54C #61C26D

Accessibility & contrast

On white

5.37
#2F7938 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2F7938 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7938
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7938#FFFFFF#000000##FFFFFF
##2F79381.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F32
Deuteranopia (green-blind)
#71683D
Tritanopia (blue-blind)
#1F766A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7938;
/* rgb */ color: rgb(47, 121, 56);
/* oklch */ color: oklch(51.3% 0.123 145.7);
Tailwind
colors: {
  custom: {
    50: '#70a070',
    500: '#2f7938',
    950: '#000000',
  },
}
SCSS
$custom: #2f7938;
$custom-light: #70a070;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7938",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 56
  },
  "hsl": {
    "h": 127.297,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51346,
    "c": 0.12294,
    "h": 145.7
  },
  "luminance": 0.14565
}

Semantic roles & 50–950 ramp

primary
#2F7938
secondary
#A85B9F
accent
#54C4D4
background
#F7F9F6
surface
#EDF2EC
border
#C8CCC7
text
#080F07
muted
#7B7E7A

Preview Lab

Preview with #2F7938

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

Preview Lab → · Contrast checker → · Palette generator →

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