#2F842D#2F842D

#2F842D is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.3% C 0.148 H 142.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#2F842D
RGBrgb(47, 132, 45)
HSLhsl(119, 49%, 35%)
HSVhsv(119, 66%, 52%)
CMYKcmyk(64.4%, 0%, 65.9%, 48.2%)
CIE-LABlab(48.63, -43.35, 38.41)
CIE-LCHlch(48.63, 57.92, 138.46°)
OKLaboklab(54.27% -0.1179 0.0892)
OKLCHoklch(54.27% 0.148 142.9)
XYZxyz(9.8967, 17.2954, 5.2989)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F842D #822D84
analogous
#5A842D #2F842D #2D8457
triadic
#2F842D #2D2F84 #842D2F
tetradic
#2F842D #2D5A84 #822D84 #84572D
square
#2F842D #2D5A84 #822D84 #84572D
split-complementary
#2F842D #572D84 #842D5A
monochromatic
#0E290E #1F561D #2F842D #3FB23D #64C962

Accessibility & contrast

On white

4.71
#2F842D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#2F842D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F842D
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F842D#FFFFFF#000000##FFFFFF
##2F842D1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877822
Deuteranopia (green-blind)
#7C7135
Tritanopia (blue-blind)
#1E8072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f842d;
/* rgb */ color: rgb(47, 132, 45);
/* oklch */ color: oklch(54.3% 0.148 142.9);
Tailwind
colors: {
  custom: {
    50: '#72a96a',
    500: '#2f842d',
    950: '#000000',
  },
}
SCSS
$custom: #2f842d;
$custom-light: #72a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f842d",
  "rgb": {
    "r": 47,
    "g": 132,
    "b": 45
  },
  "hsl": {
    "h": 118.621,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.54274,
    "c": 0.14783,
    "h": 142.9
  },
  "luminance": 0.17296
}

Semantic roles & 50–950 ramp

primary
#2F842D
secondary
#AE5DB0
accent
#4FD9D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2F842D

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

Preview Lab → · Contrast checker → · Palette generator →

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