#2B7528#2B7528

#2B7528 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.9% C 0.134 H 142.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#2B7528
RGBrgb(43, 117, 40)
HSLhsl(118, 49%, 31%)
HSVhsv(118, 66%, 46%)
CMYKcmyk(63.2%, 0%, 65.8%, 54.1%)
CIE-LABlab(43.34, -39.07, 34.83)
CIE-LCHlch(43.34, 52.34, 138.28°)
OKLaboklab(49.86% -0.1063 0.0811)
OKLCHoklch(49.86% 0.134 142.7)
XYZxyz(7.7401, 13.3886, 4.1834)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7528 #722875
analogous
#517528 #2B7528 #28754B
triadic
#2B7528 #282B75 #75282B
tetradic
#2B7528 #285175 #722875 #754B28
square
#2B7528 #285175 #722875 #754B28
split-complementary
#2B7528 #4B2875 #752851
monochromatic
#091A09 #1A4718 #2B7528 #3CA338 #58C453

Accessibility & contrast

On white

5.71
#2B7528 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#2B7528 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7528
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7528#FFFFFF#000000##FFFFFF
##2B75281.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A1F
Deuteranopia (green-blind)
#6E642F
Tritanopia (blue-blind)
#1E7265
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2b7528;
/* rgb */ color: rgb(43, 117, 40);
/* oklch */ color: oklch(49.9% 0.134 142.7);
Tailwind
colors: {
  custom: {
    50: '#6e9d65',
    500: '#2b7528',
    950: '#000000',
  },
}
SCSS
$custom: #2b7528;
$custom-light: #6e9d65;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7528",
  "rgb": {
    "r": 43,
    "g": 117,
    "b": 40
  },
  "hsl": {
    "h": 117.662,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49857,
    "c": 0.13369,
    "h": 142.7
  },
  "luminance": 0.13389
}

Semantic roles & 50–950 ramp

primary
#2B7528
secondary
#A452A7
accent
#4FD9D3
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2B7528

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

Preview Lab → · Contrast checker → · Palette generator →

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