#2B874F#2B874F

#2B874F is a mid, vivid green. Relative luminance 0.184; OKLCH L 55.5% C 0.122 H 152.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2B874F
RGBrgb(43, 135, 79)
HSLhsl(143, 52%, 35%)
HSVhsv(143, 68%, 53%)
CMYKcmyk(68.1%, 0%, 41.5%, 47.1%)
CIE-LABlab(49.98, -40.23, 22.45)
CIE-LCHlch(49.98, 46.07, 150.84°)
OKLaboklab(55.51% -0.1086 0.0558)
OKLCHoklch(55.51% 0.122 152.8)
XYZxyz(11.0706, 18.4049, 10.3647)
Luminance0.1841 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B874F #872B63
analogous
#35872B #2B874F #2B877D
triadic
#2B874F #4F2B87 #874F2B
tetradic
#2B874F #2B3587 #872B63 #877D2B
square
#2B874F #2B3587 #872B63 #877D2B
split-complementary
#2B874F #7D2B87 #872B35
monochromatic
#0D2A19 #1C5934 #2B874F #3AB56A #60CC8A

Accessibility & contrast

On white

4.49
#2B874F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#2B874F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2B874F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B874F#FFFFFF#000000##000000
##2B874F1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b874f;
/* rgb */ color: rgb(43, 135, 79);
/* oklch */ color: oklch(55.5% 0.122 152.8);
Tailwind
colors: {
  custom: {
    50: '#70ab81',
    500: '#2b874f',
    950: '#000000',
  },
}
SCSS
$custom: #2b874f;
$custom-light: #70ab81;
$custom-dark: #000000;
JSON
{
  "hex": "#2b874f",
  "rgb": {
    "r": 43,
    "g": 135,
    "b": 79
  },
  "hsl": {
    "h": 143.478,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.55508,
    "c": 0.12212,
    "h": 152.8
  },
  "luminance": 0.18406
}

Semantic roles & 50–950 ramp

primary
#2B874F
secondary
#B25B90
accent
#4DA3DB
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #2B874F

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

Preview Lab → · Contrast checker → · Palette generator →

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