#2E7B28#2E7B28

#2E7B28 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.140 H 142.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2E7B28
RGBrgb(46, 123, 40)
HSLhsl(116, 51%, 32%)
HSVhsv(116, 67%, 48%)
CMYKcmyk(62.6%, 0%, 67.5%, 51.8%)
CIE-LABlab(45.50, -40.67, 37.24)
CIE-LCHlch(45.50, 55.14, 137.52°)
OKLaboklab(51.66% -0.1108 0.0862)
OKLCHoklch(51.66% 0.14 142.1)
XYZxyz(8.5922, 14.8992, 4.4301)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7B28 #75287B
analogous
#587B28 #2E7B28 #287B4C
triadic
#2E7B28 #282E7B #7B282E
tetradic
#2E7B28 #28587B #75287B #7B4C28
square
#2E7B28 #28587B #75287B #7B4C28
split-complementary
#2E7B28 #4C287B #7B2858
monochromatic
#0B1F0A #1D4D19 #2E7B28 #3FA937 #5EC856

Accessibility & contrast

On white

5.28
#2E7B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2E7B28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7B28
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7B28#FFFFFF#000000##FFFFFF
##2E7B281.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701E
Deuteranopia (green-blind)
#74692F
Tritanopia (blue-blind)
#21776A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7b28;
/* rgb */ color: rgb(46, 123, 40);
/* oklch */ color: oklch(51.7% 0.140 142.1);
Tailwind
colors: {
  custom: {
    50: '#70a266',
    500: '#2e7b28',
    950: '#000000',
  },
}
SCSS
$custom: #2e7b28;
$custom-light: #70a266;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7b28",
  "rgb": {
    "r": 46,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 115.663,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51661,
    "c": 0.14038,
    "h": 142.1
  },
  "luminance": 0.149
}

Semantic roles & 50–950 ramp

primary
#2E7B28
secondary
#A652AD
accent
#4DDAD0
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2E7B28

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

Preview Lab → · Contrast checker → · Palette generator →

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