#2A842E#2A842E

#2A842E is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.1% C 0.149 H 143.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2A842E
RGBrgb(42, 132, 46)
HSLhsl(123, 52%, 34%)
HSVhsv(123, 68%, 52%)
CMYKcmyk(68.2%, 0%, 65.2%, 48.2%)
CIE-LABlab(48.50, -44.37, 37.77)
CIE-LCHlch(48.50, 58.26, 139.60°)
OKLaboklab(54.13% -0.1203 0.088)
OKLCHoklch(54.13% 0.149 143.8)
XYZxyz(9.6987, 17.1910, 5.3913)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A842E #842A80
analogous
#53842A #2A842E #2A845B
triadic
#2A842E #2E2A84 #842E2A
tetradic
#2A842E #2A5384 #842A80 #845B2A
square
#2A842E #2A5384 #842A80 #845B2A
split-complementary
#2A842E #5B2A84 #842A53
monochromatic
#0C270E #1B561E #2A842E #39B23E #5DCB62

Accessibility & contrast

On white

4.73
#2A842E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#2A842E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A842E
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A842E#FFFFFF#000000##FFFFFF
##2A842E1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877824
Deuteranopia (green-blind)
#7C7035
Tritanopia (blue-blind)
#138072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a842e;
/* rgb */ color: rgb(42, 132, 46);
/* oklch */ color: oklch(54.1% 0.149 143.8);
Tailwind
colors: {
  custom: {
    50: '#70a96a',
    500: '#2a842e',
    950: '#000000',
  },
}
SCSS
$custom: #2a842e;
$custom-light: #70a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a842e",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 122.667,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5413,
    "c": 0.14904,
    "h": 143.8
  },
  "luminance": 0.17192
}

Semantic roles & 50–950 ramp

primary
#2A842E
secondary
#B159AD
accent
#4DD5DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #2A842E

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

Preview Lab → · Contrast checker → · Palette generator →

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