#2F875A#2F875A

#2F875A is a mid, moderate green. Relative luminance 0.187; OKLCH L 55.9% C 0.110 H 157.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2F875A
RGBrgb(47, 135, 90)
HSLhsl(149, 48%, 36%)
HSVhsv(149, 65%, 53%)
CMYKcmyk(65.2%, 0%, 33.3%, 47.1%)
CIE-LABlab(50.30, -37.18, 16.69)
CIE-LCHlch(50.30, 40.76, 155.82°)
OKLaboklab(55.86% -0.1011 0.0422)
OKLCHoklch(55.86% 0.11 157.4)
XYZxyz(11.6807, 18.6693, 12.6588)
Luminance0.1867 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F875A #872F5C
analogous
#30872F #2F875A #2F8786
triadic
#2F875A #5A2F87 #875A2F
tetradic
#2F875A #2F3087 #872F5C #87862F
square
#2F875A #2F3087 #872F5C #87862F
split-complementary
#2F875A #862F87 #872F30
monochromatic
#0F2C1D #1F5A3C #2F875A #3FB478 #66CA97

Accessibility & contrast

On white

4.44
#2F875A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#2F875A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F875A
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F875A#FFFFFF#000000##000000
##2F875A1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867D57
Deuteranopia (green-blind)
#7A745D
Tritanopia (blue-blind)
#00867B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f875a;
/* rgb */ color: rgb(47, 135, 90);
/* oklch */ color: oklch(55.9% 0.110 157.4);
Tailwind
colors: {
  custom: {
    50: '#72ab89',
    500: '#2f875a',
    950: '#000000',
  },
}
SCSS
$custom: #2f875a;
$custom-light: #72ab89;
$custom-dark: #000000;
JSON
{
  "hex": "#2f875a",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 90
  },
  "hsl": {
    "h": 149.318,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.55865,
    "c": 0.10957,
    "h": 157.4
  },
  "luminance": 0.1867
}

Semantic roles & 50–950 ramp

primary
#2F875A
secondary
#B1618A
accent
#5095D8
background
#F7FAF8
surface
#EDF4F0
border
#C8CECB
text
#08100B
muted
#7B7F7C

Preview Lab

Preview with #2F875A

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

Preview Lab → · Contrast checker → · Palette generator →

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