#2F8D2C#2F8D2C

#2F8D2C is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.8% C 0.160 H 142.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2F8D2C
RGBrgb(47, 141, 44)
HSLhsl(118, 52%, 36%)
HSVhsv(118, 69%, 55%)
CMYKcmyk(66.7%, 0%, 68.8%, 44.7%)
CIE-LABlab(51.65, -46.82, 42.16)
CIE-LCHlch(51.65, 63.00, 138.00°)
OKLaboklab(56.77% -0.1273 0.0971)
OKLCHoklch(56.77% 0.16 142.7)
XYZxyz(11.1512, 19.8348, 5.6232)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8D2C #8A2C8D
analogous
#608D2C #2F8D2C #2C8D5A
triadic
#2F8D2C #2C2F8D #8D2C2F
tetradic
#2F8D2C #2C608D #8A2C8D #8D5A2C
square
#2F8D2C #2C608D #8A2C8D #8D5A2C
split-complementary
#2F8D2C #5A2C8D #8D2C60
monochromatic
#10300F #1F5E1D #2F8D2C #3FBC3B #68CF65

Accessibility & contrast

On white

4.23
#2F8D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#2F8D2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8D2C
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8D2C#FFFFFF#000000##000000
##2F8D2C1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801F
Deuteranopia (green-blind)
#857835
Tritanopia (blue-blind)
#1B8979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f8d2c;
/* rgb */ color: rgb(47, 141, 44);
/* oklch */ color: oklch(56.8% 0.160 142.7);
Tailwind
colors: {
  custom: {
    50: '#74af6a',
    500: '#2f8d2c',
    950: '#000000',
  },
}
SCSS
$custom: #2f8d2c;
$custom-light: #74af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8d2c",
  "rgb": {
    "r": 47,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 118.144,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56768,
    "c": 0.16008,
    "h": 142.7
  },
  "luminance": 0.19836
}

Semantic roles & 50–950 ramp

primary
#2F8D2C
secondary
#B360B5
accent
#4CDCD7
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2F8D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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