#2D8228#2D8228

#2D8228 is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.6% C 0.150 H 142.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#2D8228
RGBrgb(45, 130, 40)
HSLhsl(117, 53%, 33%)
HSVhsv(117, 69%, 51%)
CMYKcmyk(65.4%, 0%, 69.2%, 49%)
CIE-LABlab(47.85, -43.60, 39.79)
CIE-LCHlch(47.85, 59.02, 137.62°)
OKLaboklab(53.6% -0.1187 0.0916)
OKLCHoklch(53.6% 0.15 142.3)
XYZxyz(9.4473, 16.6754, 4.7279)
Luminance0.1668 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8228 #7D2882
analogous
#5A8228 #2D8228 #288250
triadic
#2D8228 #282D82 #82282D
tetradic
#2D8228 #285A82 #7D2882 #825028
square
#2D8228 #285A82 #7D2882 #825028
split-complementary
#2D8228 #502882 #82285A
monochromatic
#0D240B #1D531A #2D8228 #3DB136 #5FCC59

Accessibility & contrast

On white

4.84
#2D8228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#2D8228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8228
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8228#FFFFFF#000000##FFFFFF
##2D82281.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85761C
Deuteranopia (green-blind)
#7B6F30
Tritanopia (blue-blind)
#1D7E70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2d8228;
/* rgb */ color: rgb(45, 130, 40);
/* oklch */ color: oklch(53.6% 0.150 142.3);
Tailwind
colors: {
  custom: {
    50: '#71a767',
    500: '#2d8228',
    950: '#000000',
  },
}
SCSS
$custom: #2d8228;
$custom-light: #71a767;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8228",
  "rgb": {
    "r": 45,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 116.667,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53597,
    "c": 0.14991,
    "h": 142.3
  },
  "luminance": 0.16676
}

Semantic roles & 50–950 ramp

primary
#2D8228
secondary
#AC55B1
accent
#4BDCD4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #2D8228

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

Preview Lab → · Contrast checker → · Palette generator →

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