#2F8338#2F8338

#2F8338 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.1% C 0.137 H 145.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2F8338
RGBrgb(47, 131, 56)
HSLhsl(126, 47%, 35%)
HSVhsv(126, 64%, 51%)
CMYKcmyk(64.1%, 0%, 57.3%, 48.6%)
CIE-LABlab(48.41, -41.58, 32.82)
CIE-LCHlch(48.41, 52.97, 141.72°)
OKLaboklab(54.13% -0.1126 0.0782)
OKLCHoklch(54.13% 0.137 145.2)
XYZxyz(10.0018, 17.1215, 6.5183)
Luminance0.1712 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8338 #832F7A
analogous
#50832F #2F8338 #2F8362
triadic
#2F8338 #382F83 #83382F
tetradic
#2F8338 #2F5083 #832F7A #83622F
square
#2F8338 #2F5083 #832F7A #83622F
split-complementary
#2F8338 #622F83 #832F50
monochromatic
#0F2911 #1F5625 #2F8338 #3FB04B #65C86F

Accessibility & contrast

On white

4.75
#2F8338 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#2F8338 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8338
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8338#FFFFFF#000000##FFFFFF
##2F83381.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857731
Deuteranopia (green-blind)
#7B703E
Tritanopia (blue-blind)
#1B8072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f8338;
/* rgb */ color: rgb(47, 131, 56);
/* oklch */ color: oklch(54.1% 0.137 145.2);
Tailwind
colors: {
  custom: {
    50: '#72a871',
    500: '#2f8338',
    950: '#000000',
  },
}
SCSS
$custom: #2f8338;
$custom-light: #72a871;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8338",
  "rgb": {
    "r": 47,
    "g": 131,
    "b": 56
  },
  "hsl": {
    "h": 126.429,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.54133,
    "c": 0.13706,
    "h": 145.2
  },
  "luminance": 0.17122
}

Semantic roles & 50–950 ramp

primary
#2F8338
secondary
#AF5FA6
accent
#51C8D7
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #2F8338

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

Preview Lab → · Contrast checker → · Palette generator →

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