#2A8F28#2A8F28

#2A8F28 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.1% C 0.167 H 142.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2A8F28
RGBrgb(42, 143, 40)
HSLhsl(119, 56%, 36%)
HSVhsv(119, 72%, 56%)
CMYKcmyk(70.6%, 0%, 72%, 43.9%)
CIE-LABlab(52.16, -48.97, 44.34)
CIE-LCHlch(52.16, 66.06, 137.84°)
OKLaboklab(57.15% -0.1331 0.1012)
OKLCHoklch(57.15% 0.167 142.8)
XYZxyz(11.1597, 20.2892, 5.3351)
Luminance0.2029 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8F28 #8D288F
analogous
#5D8F28 #2A8F28 #288F59
triadic
#2A8F28 #282A8F #8F282A
tetradic
#2A8F28 #285D8F #8D288F #8F5928
square
#2A8F28 #285D8F #8D288F #8F5928
split-complementary
#2A8F28 #59288F #8F285D
monochromatic
#0E2F0D #1C5F1B #2A8F28 #38BF35 #61D25F

Accessibility & contrast

On white

4.15
#2A8F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#2A8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8F28
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8F28#FFFFFF#000000##000000
##2A8F281.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#928118
Deuteranopia (green-blind)
#867932
Tritanopia (blue-blind)
#0D8B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2a8f28;
/* rgb */ color: rgb(42, 143, 40);
/* oklch */ color: oklch(57.1% 0.167 142.8);
Tailwind
colors: {
  custom: {
    50: '#73b168',
    500: '#2a8f28',
    950: '#000000',
  },
}
SCSS
$custom: #2a8f28;
$custom-light: #73b168;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8f28",
  "rgb": {
    "r": 42,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 118.835,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57147,
    "c": 0.16715,
    "h": 142.8
  },
  "luminance": 0.2029
}

Semantic roles & 50–950 ramp

primary
#2A8F28
secondary
#B65BB8
accent
#48E0DD
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2A8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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