#2F874F#2F874F

#2F874F is a mid, vivid green. Relative luminance 0.185; OKLCH L 55.6% C 0.120 H 152.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2F874F
RGBrgb(47, 135, 79)
HSLhsl(142, 48%, 36%)
HSVhsv(142, 65%, 53%)
CMYKcmyk(65.2%, 0%, 41.5%, 47.1%)
CIE-LABlab(50.09, -39.41, 22.61)
CIE-LCHlch(50.09, 45.43, 150.16°)
OKLaboklab(55.63% -0.1065 0.0562)
OKLCHoklch(55.63% 0.12 152.2)
XYZxyz(11.2466, 18.4957, 10.3729)
Luminance0.1850 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F874F #872F67
analogous
#3B872F #2F874F #2F877B
triadic
#2F874F #4F2F87 #874F2F
tetradic
#2F874F #2F3B87 #872F67 #877B2F
square
#2F874F #2F3B87 #872F67 #877B2F
split-complementary
#2F874F #7B2F87 #872F3B
monochromatic
#0F2C1A #1F5A34 #2F874F #3FB46A #66CA8B

Accessibility & contrast

On white

4.47
#2F874F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#2F874F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F874F
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F874F#FFFFFF#000000##000000
##2F874F1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#877C4B
Deuteranopia (green-blind)
#7C7453
Tritanopia (blue-blind)
#0A8579
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2f874f;
/* rgb */ color: rgb(47, 135, 79);
/* oklch */ color: oklch(55.6% 0.120 152.2);
Tailwind
colors: {
  custom: {
    50: '#72ab81',
    500: '#2f874f',
    950: '#000000',
  },
}
SCSS
$custom: #2f874f;
$custom-light: #72ab81;
$custom-dark: #000000;
JSON
{
  "hex": "#2f874f",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 79
  },
  "hsl": {
    "h": 141.818,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.55628,
    "c": 0.12041,
    "h": 152.2
  },
  "luminance": 0.18497
}

Semantic roles & 50–950 ramp

primary
#2F874F
secondary
#B16194
accent
#50A6D8
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #2F874F

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

Preview Lab → · Contrast checker → · Palette generator →

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