#2A861F#2A861F

#2A861F is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.6% C 0.162 H 141.6°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#2A861F
RGBrgb(42, 134, 31)
HSLhsl(114, 62%, 32%)
HSVhsv(114, 77%, 53%)
CMYKcmyk(68.7%, 0%, 76.9%, 47.5%)
CIE-LABlab(49.06, -46.55, 44.65)
CIE-LCHlch(49.06, 64.50, 136.19°)
OKLaboklab(54.55% -0.127 0.1006)
OKLCHoklch(54.55% 0.162 141.6)
XYZxyz(9.7267, 17.6404, 4.1884)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A861F #7B1F86
analogous
#5E861F #2A861F #1F8647
triadic
#2A861F #1F2A86 #861F2A
tetradic
#2A861F #1F5E86 #7B1F86 #86471F
square
#2A861F #1F5E86 #7B1F86 #86471F
split-complementary
#2A861F #471F86 #861F5E
monochromatic
#0B2308 #1A5414 #2A861F #3AB82A #59D54A

Accessibility & contrast

On white

4.64
#2A861F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#2A861F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A861F
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A861F#FFFFFF#000000##FFFFFF
##2A861F1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897909
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#178272
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a861f;
/* rgb */ color: rgb(42, 134, 31);
/* oklch */ color: oklch(54.6% 0.162 141.6);
Tailwind
colors: {
  custom: {
    50: '#71aa62',
    500: '#2a861f',
    950: '#000000',
  },
}
SCSS
$custom: #2a861f;
$custom-light: #71aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a861f",
  "rgb": {
    "r": 42,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 113.592,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54552,
    "c": 0.16199,
    "h": 141.6
  },
  "luminance": 0.17641
}

Semantic roles & 50–950 ramp

primary
#2A861F
secondary
#AC49B8
accent
#42E5D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2A861F

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

Preview Lab → · Contrast checker → · Palette generator →

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