#2E7828#2E7828

#2E7828 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.136 H 142.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#2E7828
RGBrgb(46, 120, 40)
HSLhsl(116, 50%, 31%)
HSVhsv(116, 67%, 47%)
CMYKcmyk(61.7%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.47, -39.48, 36.11)
CIE-LCHlch(44.47, 53.51, 137.56°)
OKLaboklab(50.82% -0.1076 0.0838)
OKLCHoklch(50.82% 0.136 142.1)
XYZxyz(8.2258, 14.1662, 4.3079)
Luminance0.1417 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7828 #722878
analogous
#567828 #2E7828 #28784A
triadic
#2E7828 #282E78 #78282E
tetradic
#2E7828 #285678 #722878 #784A28
square
#2E7828 #285678 #722878 #784A28
split-complementary
#2E7828 #4A2878 #782856
monochromatic
#0B1C09 #1C4A19 #2E7828 #40A637 #5DC654

Accessibility & contrast

On white

5.48
#2E7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#2E7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7828
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7828#FFFFFF#000000##FFFFFF
##2E78281.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#72672F
Tritanopia (blue-blind)
#227467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2e7828;
/* rgb */ color: rgb(46, 120, 40);
/* oklch */ color: oklch(50.8% 0.136 142.1);
Tailwind
colors: {
  custom: {
    50: '#70a066',
    500: '#2e7828',
    950: '#000000',
  },
}
SCSS
$custom: #2e7828;
$custom-light: #70a066;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7828",
  "rgb": {
    "r": 46,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 115.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.50815,
    "c": 0.13638,
    "h": 142.1
  },
  "luminance": 0.14167
}

Semantic roles & 50–950 ramp

primary
#2E7828
secondary
#A352AA
accent
#4EDACF
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2E7828

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

Preview Lab → · Contrast checker → · Palette generator →

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