#2A862D#2A862D

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

Color values

HEX#2A862D
RGBrgb(42, 134, 45)
HSLhsl(122, 52%, 35%)
HSVhsv(122, 69%, 53%)
CMYKcmyk(68.7%, 0%, 66.4%, 47.5%)
CIE-LABlab(49.17, -45.22, 38.97)
CIE-LCHlch(49.17, 59.70, 139.25°)
OKLaboklab(54.68% -0.1226 0.0905)
OKLCHoklch(54.68% 0.152 143.6)
XYZxyz(9.9530, 17.7309, 5.3800)
Luminance0.1773 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A862D #862A83
analogous
#55862A #2A862D #2A865B
triadic
#2A862D #2D2A86 #862D2A
tetradic
#2A862D #2A5586 #862A83 #865B2A
square
#2A862D #2A5586 #862A83 #865B2A
split-complementary
#2A862D #5B2A86 #862A55
monochromatic
#0D290E #1B571D #2A862D #39B53D #5ECD62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A862D#FFFFFF#000000##FFFFFF
##2A862D1.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)
#897922
Deuteranopia (green-blind)
#7E7235
Tritanopia (blue-blind)
#128273
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a862d;
/* rgb */ color: rgb(42, 134, 45);
/* oklch */ color: oklch(54.7% 0.152 143.6);
Tailwind
colors: {
  custom: {
    50: '#71aa6a',
    500: '#2a862d',
    950: '#000000',
  },
}
SCSS
$custom: #2a862d;
$custom-light: #71aa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a862d",
  "rgb": {
    "r": 42,
    "g": 134,
    "b": 45
  },
  "hsl": {
    "h": 121.957,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.5468,
    "c": 0.1524,
    "h": 143.6
  },
  "luminance": 0.17732
}

Semantic roles & 50–950 ramp

primary
#2A862D
secondary
#B25AAF
accent
#4CD7DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #2A862D

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

Preview Lab → · Contrast checker → · Palette generator →

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