#2E7F28#2E7F28

#2E7F28 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.146 H 142.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2E7F28
RGBrgb(46, 127, 40)
HSLhsl(116, 52%, 33%)
HSVhsv(116, 69%, 50%)
CMYKcmyk(63.8%, 0%, 68.5%, 50.2%)
CIE-LABlab(46.86, -42.22, 38.73)
CIE-LCHlch(46.86, 57.29, 137.47°)
OKLaboklab(52.79% -0.115 0.0893)
OKLCHoklch(52.79% 0.146 142.2)
XYZxyz(9.0986, 15.9119, 4.5989)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F28 #79287F
analogous
#597F28 #2E7F28 #287F4D
triadic
#2E7F28 #282E7F #7F282E
tetradic
#2E7F28 #28597F #79287F #7F4D28
square
#2E7F28 #28597F #79287F #7F4D28
split-complementary
#2E7F28 #4D287F #7F2859
monochromatic
#0C220B #1D5019 #2E7F28 #3FAE37 #5FCA57

Accessibility & contrast

On white

5.02
#2E7F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2E7F28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7F28
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7F28#FFFFFF#000000##FFFFFF
##2E7F281.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731D
Deuteranopia (green-blind)
#786C30
Tritanopia (blue-blind)
#207B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2e7f28;
/* rgb */ color: rgb(46, 127, 40);
/* oklch */ color: oklch(52.8% 0.146 142.2);
Tailwind
colors: {
  custom: {
    50: '#71a566',
    500: '#2e7f28',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f28;
$custom-light: #71a566;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f28",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 115.862,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52787,
    "c": 0.14562,
    "h": 142.2
  },
  "luminance": 0.15913
}

Semantic roles & 50–950 ramp

primary
#2E7F28
secondary
#A954AF
accent
#4CDCD2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2E7F28

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

Preview Lab → · Contrast checker → · Palette generator →

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