#2F8542#2F8542

#2F8542 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.8% C 0.130 H 147.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#2F8542
RGBrgb(47, 133, 66)
HSLhsl(133, 48%, 35%)
HSVhsv(133, 65%, 52%)
CMYKcmyk(64.7%, 0%, 50.4%, 47.8%)
CIE-LABlab(49.22, -40.88, 28.58)
CIE-LCHlch(49.22, 49.88, 145.04°)
OKLaboklab(54.84% -0.1104 0.0694)
OKLCHoklch(54.84% 0.13 147.8)
XYZxyz(10.5424, 17.7717, 8.0279)
Luminance0.1777 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8542 #852F72
analogous
#47852F #2F8542 #2F856D
triadic
#2F8542 #422F85 #85422F
tetradic
#2F8542 #2F4785 #852F72 #856D2F
square
#2F8542 #2F4785 #852F72 #856D2F
split-complementary
#2F8542 #6D2F85 #852F47
monochromatic
#0F2B15 #1F582C #2F8542 #3FB258 #66C97C

Accessibility & contrast

On white

4.61
#2F8542 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F8542
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8542#FFFFFF#000000##FFFFFF
##2F85421.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867A3C
Deuteranopia (green-blind)
#7C7247
Tritanopia (blue-blind)
#168275
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f8542;
/* rgb */ color: rgb(47, 133, 66);
/* oklch */ color: oklch(54.8% 0.130 147.8);
Tailwind
colors: {
  custom: {
    50: '#72a978',
    500: '#2f8542',
    950: '#000000',
  },
}
SCSS
$custom: #2f8542;
$custom-light: #72a978;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8542",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 66
  },
  "hsl": {
    "h": 133.256,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.1304,
    "h": 147.8
  },
  "luminance": 0.17773
}

Semantic roles & 50–950 ramp

primary
#2F8542
secondary
#B0609E
accent
#50BAD7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2F8542

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

Preview Lab → · Contrast checker → · Palette generator →

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