#2A862F#2A862F

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

Color values

HEX#2A862F
RGBrgb(42, 134, 47)
HSLhsl(123, 52%, 35%)
HSVhsv(123, 69%, 53%)
CMYKcmyk(68.7%, 0%, 64.9%, 47.5%)
CIE-LABlab(49.19, -45.00, 38.07)
CIE-LCHlch(49.19, 58.94, 139.77°)
OKLaboklab(54.7% -0.1219 0.0888)
OKLCHoklch(54.7% 0.151 143.9)
XYZxyz(9.9924, 17.7466, 5.5876)
Luminance0.1775 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A862F #862A81
analogous
#53862A #2A862F #2A865D
triadic
#2A862F #2F2A86 #862F2A
tetradic
#2A862F #2A5386 #862A81 #865D2A
square
#2A862F #2A5386 #862A81 #865D2A
split-complementary
#2A862F #5D2A86 #862A53
monochromatic
#0D290E #1B571F #2A862F #39B53F #5ECD64

Accessibility & contrast

On white

4.62
#2A862F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#2A862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A862F
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A862F#FFFFFF#000000##FFFFFF
##2A862F1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A25
Deuteranopia (green-blind)
#7E7236
Tritanopia (blue-blind)
#118274
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a862f;
/* rgb */ color: rgb(42, 134, 47);
/* oklch */ color: oklch(54.7% 0.151 143.9);
Tailwind
colors: {
  custom: {
    50: '#71aa6b',
    500: '#2a862f',
    950: '#000000',
  },
}
SCSS
$custom: #2a862f;
$custom-light: #71aa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a862f",
  "rgb": {
    "r": 42,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 123.261,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54702,
    "c": 0.15082,
    "h": 143.9
  },
  "luminance": 0.17748
}

Semantic roles & 50–950 ramp

primary
#2A862F
secondary
#B25AAD
accent
#4CD4DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #2A862F

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

Preview Lab → · Contrast checker → · Palette generator →

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