#2B7948#2B7948

#2B7948 is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.5% C 0.109 H 152.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2B7948
RGBrgb(43, 121, 72)
HSLhsl(142, 48%, 32%)
HSVhsv(142, 64%, 47%)
CMYKcmyk(64.5%, 0%, 40.5%, 52.5%)
CIE-LABlab(45.16, -35.70, 20.02)
CIE-LCHlch(45.16, 40.93, 150.71°)
OKLaboklab(51.5% -0.0966 0.0499)
OKLCHoklch(51.5% 0.109 152.7)
XYZxyz(9.0026, 14.6553, 8.4840)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7948 #792B5C
analogous
#35792B #2B7948 #2B796F
triadic
#2B7948 #482B79 #79482B
tetradic
#2B7948 #2B3579 #792B5C #796F2B
square
#2B7948 #2B3579 #792B5C #796F2B
split-complementary
#2B7948 #6F2B79 #792B35
monochromatic
#0B1F12 #1B4C2D #2B7948 #3BA663 #5AC482

Accessibility & contrast

On white

5.34
#2B7948 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2B7948 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7948
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7948#FFFFFF#000000##FFFFFF
##2B79481.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F45
Deuteranopia (green-blind)
#6F684B
Tritanopia (blue-blind)
#0D776D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2b7948;
/* rgb */ color: rgb(43, 121, 72);
/* oklch */ color: oklch(51.5% 0.109 152.7);
Tailwind
colors: {
  custom: {
    50: '#6da07b',
    500: '#2b7948',
    950: '#000000',
  },
}
SCSS
$custom: #2b7948;
$custom-light: #6da07b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7948",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 72
  },
  "hsl": {
    "h": 142.308,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51498,
    "c": 0.1087,
    "h": 152.7
  },
  "luminance": 0.14656
}

Semantic roles & 50–950 ramp

primary
#2B7948
secondary
#AA568B
accent
#51A5D7
background
#F6F9F7
surface
#ECF2EE
border
#C7CCC9
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2B7948

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

Preview Lab → · Contrast checker → · Palette generator →

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