#2D7828#2D7828

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

Color values

HEX#2D7828
RGBrgb(45, 120, 40)
HSLhsl(116, 50%, 31%)
HSVhsv(116, 67%, 47%)
CMYKcmyk(62.5%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.44, -39.74, 36.06)
CIE-LCHlch(44.44, 53.67, 137.78°)
OKLaboklab(50.78% -0.1082 0.0837)
OKLCHoklch(50.78% 0.137 142.3)
XYZxyz(8.1812, 14.1433, 4.3059)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7828 #732878
analogous
#557828 #2D7828 #28784B
triadic
#2D7828 #282D78 #78282D
tetradic
#2D7828 #285578 #732878 #784B28
square
#2D7828 #285578 #732878 #784B28
split-complementary
#2D7828 #4B2878 #782855
monochromatic
#0B1C09 #1C4A19 #2D7828 #3EA637 #5BC654

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7828#FFFFFF#000000##FFFFFF
##2D78281.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)
#71672F
Tritanopia (blue-blind)
#207467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2d7828;
/* rgb */ color: rgb(45, 120, 40);
/* oklch */ color: oklch(50.8% 0.137 142.3);
Tailwind
colors: {
  custom: {
    50: '#6fa066',
    500: '#2d7828',
    950: '#000000',
  },
}
SCSS
$custom: #2d7828;
$custom-light: #6fa066;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7828",
  "rgb": {
    "r": 45,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 116.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.50778,
    "c": 0.13683,
    "h": 142.3
  },
  "luminance": 0.14144
}

Semantic roles & 50–950 ramp

primary
#2D7828
secondary
#A452AA
accent
#4EDAD1
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2D7828

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

Preview Lab → · Contrast checker → · Palette generator →

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