#2A8545#2A8545

#2A8545 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.130 H 149.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#2A8545
RGBrgb(42, 133, 69)
HSLhsl(138, 52%, 34%)
HSVhsv(138, 68%, 52%)
CMYKcmyk(68.4%, 0%, 48.1%, 47.8%)
CIE-LABlab(49.13, -41.44, 26.82)
CIE-LCHlch(49.13, 49.37, 147.09°)
OKLaboklab(54.74% -0.1117 0.0656)
OKLCHoklch(54.74% 0.13 149.6)
XYZxyz(10.4157, 17.6959, 8.4958)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8545 #852A6A
analogous
#3D852A #2A8545 #2A8573
triadic
#2A8545 #452A85 #85452A
tetradic
#2A8545 #2A3D85 #852A6A #85732A
square
#2A8545 #2A3D85 #852A6A #85732A
split-complementary
#2A8545 #732A85 #852A3D
monochromatic
#0D2815 #1B562D #2A8545 #39B45D #5DCC7E

Accessibility & contrast

On white

4.63
#2A8545 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#2A8545 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8545
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8545#FFFFFF#000000##FFFFFF
##2A85451.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867A40
Deuteranopia (green-blind)
#7B7249
Tritanopia (blue-blind)
#018376
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a8545;
/* rgb */ color: rgb(42, 133, 69);
/* oklch */ color: oklch(54.7% 0.130 149.6);
Tailwind
colors: {
  custom: {
    50: '#6fa97a',
    500: '#2a8545',
    950: '#000000',
  },
}
SCSS
$custom: #2a8545;
$custom-light: #6fa97a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8545",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 69
  },
  "hsl": {
    "h": 137.802,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5474,
    "c": 0.12956,
    "h": 149.6
  },
  "luminance": 0.17697
}

Semantic roles & 50–950 ramp

primary
#2A8545
secondary
#B25997
accent
#4CB1DB
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2A8545

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

Preview Lab → · Contrast checker → · Palette generator →

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