#2A841F#2A841F

#2A841F is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.160 H 141.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A841F
RGBrgb(42, 132, 31)
HSLhsl(113, 62%, 32%)
HSVhsv(113, 77%, 52%)
CMYKcmyk(68.2%, 0%, 76.5%, 48.2%)
CIE-LABlab(48.38, -45.83, 43.97)
CIE-LCHlch(48.38, 63.51, 136.18°)
OKLaboklab(53.99% -0.125 0.0992)
OKLCHoklch(53.99% 0.16 141.6)
XYZxyz(9.4529, 17.0927, 4.0971)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A841F #791F84
analogous
#5D841F #2A841F #1F8446
triadic
#2A841F #1F2A84 #841F2A
tetradic
#2A841F #1F5D84 #791F84 #84461F
square
#2A841F #1F5D84 #791F84 #84461F
split-complementary
#2A841F #461F84 #841F5D
monochromatic
#0A2108 #1A5213 #2A841F #3AB62B #58D449

Accessibility & contrast

On white

4.75
#2A841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#2A841F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A841F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A841F#FFFFFF#000000##FFFFFF
##2A841F1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#188071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a841f;
/* rgb */ color: rgb(42, 132, 31);
/* oklch */ color: oklch(54.0% 0.160 141.6);
Tailwind
colors: {
  custom: {
    50: '#71a962',
    500: '#2a841f',
    950: '#000000',
  },
}
SCSS
$custom: #2a841f;
$custom-light: #71a962;
$custom-dark: #000000;
JSON
{
  "hex": "#2a841f",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 113.465,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53988,
    "c": 0.1596,
    "h": 141.6
  },
  "luminance": 0.17094
}

Semantic roles & 50–950 ramp

primary
#2A841F
secondary
#AB48B7
accent
#43E5D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2A841F

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

Preview Lab → · Contrast checker → · Palette generator →

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