#2A862E#2A862E

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

Color values

HEX#2A862E
RGBrgb(42, 134, 46)
HSLhsl(123, 52%, 35%)
HSVhsv(123, 69%, 53%)
CMYKcmyk(68.7%, 0%, 65.7%, 47.5%)
CIE-LABlab(49.18, -45.11, 38.52)
CIE-LCHlch(49.18, 59.32, 139.51°)
OKLaboklab(54.69% -0.1223 0.0896)
OKLCHoklch(54.69% 0.152 143.8)
XYZxyz(9.9725, 17.7387, 5.4826)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A862E #862A82
analogous
#54862A #2A862E #2A865C
triadic
#2A862E #2E2A86 #862E2A
tetradic
#2A862E #2A5486 #862A82 #865C2A
square
#2A862E #2A5486 #862A82 #865C2A
split-complementary
#2A862E #5C2A86 #862A54
monochromatic
#0D290E #1B571E #2A862E #39B53E #5ECD63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A862E#FFFFFF#000000##FFFFFF
##2A862E1.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)
#897923
Deuteranopia (green-blind)
#7E7236
Tritanopia (blue-blind)
#128274
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a862e;
/* rgb */ color: rgb(42, 134, 46);
/* oklch */ color: oklch(54.7% 0.152 143.8);
Tailwind
colors: {
  custom: {
    50: '#71aa6b',
    500: '#2a862e',
    950: '#000000',
  },
}
SCSS
$custom: #2a862e;
$custom-light: #71aa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a862e",
  "rgb": {
    "r": 42,
    "g": 134,
    "b": 46
  },
  "hsl": {
    "h": 122.609,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54691,
    "c": 0.15162,
    "h": 143.8
  },
  "luminance": 0.1774
}

Semantic roles & 50–950 ramp

primary
#2A862E
secondary
#B25AAE
accent
#4CD5DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #2A862E

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

Preview Lab → · Contrast checker → · Palette generator →

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