#2D874F#2D874F

#2D874F is a mid, vivid green. Relative luminance 0.184; OKLCH L 55.6% C 0.121 H 152.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#2D874F
RGBrgb(45, 135, 79)
HSLhsl(143, 50%, 35%)
HSVhsv(143, 67%, 53%)
CMYKcmyk(66.7%, 0%, 41.5%, 47.1%)
CIE-LABlab(50.04, -39.83, 22.52)
CIE-LCHlch(50.04, 45.76, 150.51°)
OKLaboklab(55.57% -0.1076 0.056)
OKLCHoklch(55.57% 0.121 152.5)
XYZxyz(11.1565, 18.4492, 10.3687)
Luminance0.1845 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D874F #872D65
analogous
#38872D #2D874F #2D877C
triadic
#2D874F #4F2D87 #874F2D
tetradic
#2D874F #2D3887 #872D65 #877C2D
square
#2D874F #2D3887 #872D65 #877C2D
split-complementary
#2D874F #7C2D87 #872D38
monochromatic
#0E2B19 #1E5934 #2D874F #3CB56A #63CB8B

Accessibility & contrast

On white

4.48
#2D874F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#2D874F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D874F
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D874F#FFFFFF#000000##000000
##2D874F1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d874f;
/* rgb */ color: rgb(45, 135, 79);
/* oklch */ color: oklch(55.6% 0.121 152.5);
Tailwind
colors: {
  custom: {
    50: '#71ab81',
    500: '#2d874f',
    950: '#000000',
  },
}
SCSS
$custom: #2d874f;
$custom-light: #71ab81;
$custom-dark: #000000;
JSON
{
  "hex": "#2d874f",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 79
  },
  "hsl": {
    "h": 142.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55566,
    "c": 0.12129,
    "h": 152.5
  },
  "luminance": 0.1845
}

Semantic roles & 50–950 ramp

primary
#2D874F
secondary
#B25E92
accent
#4EA5DA
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #2D874F

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

Preview Lab → · Contrast checker → · Palette generator →

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