#2A8045#2A8045

#2A8045 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.4% C 0.122 H 150.3°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#2A8045
RGBrgb(42, 128, 69)
HSLhsl(139, 51%, 33%)
HSVhsv(139, 67%, 50%)
CMYKcmyk(67.2%, 0%, 46.1%, 49.8%)
CIE-LABlab(47.44, -39.42, 24.67)
CIE-LCHlch(47.44, 46.51, 147.96°)
OKLaboklab(53.35% -0.1063 0.0607)
OKLCHoklch(53.35% 0.122 150.3)
XYZxyz(9.7474, 16.3592, 8.2730)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8045 #802A65
analogous
#3A802A #2A8045 #2A8070
triadic
#2A8045 #452A80 #80452A
tetradic
#2A8045 #2A3A80 #802A65 #80702A
square
#2A8045 #2A3A80 #802A65 #80702A
split-complementary
#2A8045 #702A80 #802A3A
monochromatic
#0C2413 #1B522C #2A8045 #39AE5E #5BC97E

Accessibility & contrast

On white

4.92
#2A8045 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#2A8045 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8045
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8045#FFFFFF#000000##FFFFFF
##2A80451.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817541
Deuteranopia (green-blind)
#766E49
Tritanopia (blue-blind)
#067E72
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2a8045;
/* rgb */ color: rgb(42, 128, 69);
/* oklch */ color: oklch(53.4% 0.122 150.3);
Tailwind
colors: {
  custom: {
    50: '#6ea679',
    500: '#2a8045',
    950: '#000000',
  },
}
SCSS
$custom: #2a8045;
$custom-light: #6ea679;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8045",
  "rgb": {
    "r": 42,
    "g": 128,
    "b": 69
  },
  "hsl": {
    "h": 138.837,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53353,
    "c": 0.12243,
    "h": 150.3
  },
  "luminance": 0.1636
}

Semantic roles & 50–950 ramp

primary
#2A8045
secondary
#AF5793
accent
#4EAEDA
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2A8045

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

Preview Lab → · Contrast checker → · Palette generator →

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