#2F8540#2F8540

#2F8540 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.8% C 0.132 H 147.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2F8540
RGBrgb(47, 133, 64)
HSLhsl(132, 48%, 35%)
HSVhsv(132, 65%, 52%)
CMYKcmyk(64.7%, 0%, 51.9%, 47.8%)
CIE-LABlab(49.19, -41.20, 29.61)
CIE-LCHlch(49.19, 50.73, 144.29°)
OKLaboklab(54.81% -0.1113 0.0716)
OKLCHoklch(54.81% 0.132 147.2)
XYZxyz(10.4845, 17.7485, 7.7228)
Luminance0.1775 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8540 #852F74
analogous
#49852F #2F8540 #2F856B
triadic
#2F8540 #402F85 #85402F
tetradic
#2F8540 #2F4985 #852F74 #856B2F
square
#2F8540 #2F4985 #852F74 #856B2F
split-complementary
#2F8540 #6B2F85 #852F49
monochromatic
#0F2B14 #1F582A #2F8540 #3FB256 #66C979

Accessibility & contrast

On white

4.62
#2F8540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#2F8540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8540
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8540#FFFFFF#000000##FFFFFF
##2F85401.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87793A
Deuteranopia (green-blind)
#7C7245
Tritanopia (blue-blind)
#178275
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f8540;
/* rgb */ color: rgb(47, 133, 64);
/* oklch */ color: oklch(54.8% 0.132 147.2);
Tailwind
colors: {
  custom: {
    50: '#72a976',
    500: '#2f8540',
    950: '#000000',
  },
}
SCSS
$custom: #2f8540;
$custom-light: #72a976;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8540",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 131.86,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.54808,
    "c": 0.13233,
    "h": 147.2
  },
  "luminance": 0.1775
}

Semantic roles & 50–950 ramp

primary
#2F8540
secondary
#B060A0
accent
#50BDD7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #2F8540

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

Preview Lab → · Contrast checker → · Palette generator →

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