#2A831B#2A831B

#2A831B is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.7% C 0.161 H 141.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#2A831B
RGBrgb(42, 131, 27)
HSLhsl(111, 66%, 31%)
HSVhsv(111, 79%, 51%)
CMYKcmyk(67.9%, 0%, 79.4%, 48.6%)
CIE-LABlab(48.01, -45.77, 45.05)
CIE-LCHlch(48.01, 64.22, 135.45°)
OKLaboklab(53.68% -0.1251 0.1009)
OKLCHoklch(53.68% 0.161 141.1)
XYZxyz(9.2685, 16.8030, 3.7916)
Luminance0.1680 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A831B #741B83
analogous
#5E831B #2A831B #1B8340
triadic
#2A831B #1B2A83 #831B2A
tetradic
#2A831B #1B5E83 #741B83 #83401B
square
#2A831B #1B5E83 #741B83 #83401B
split-complementary
#2A831B #401B83 #831B5E
monochromatic
#091E06 #1A5011 #2A831B #3AB625 #56D841

Accessibility & contrast

On white

4.82
#2A831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#2A831B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A831B
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A831B#FFFFFF#000000##FFFFFF
##2A831B1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867602
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#197F6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2a831b;
/* rgb */ color: rgb(42, 131, 27);
/* oklch */ color: oklch(53.7% 0.161 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a860',
    500: '#2a831b',
    950: '#000000',
  },
}
SCSS
$custom: #2a831b;
$custom-light: #71a860;
$custom-dark: #000000;
JSON
{
  "hex": "#2a831b",
  "rgb": {
    "r": 42,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 111.346,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53677,
    "c": 0.16068,
    "h": 141.1
  },
  "luminance": 0.16804
}

Semantic roles & 50–950 ramp

primary
#2A831B
secondary
#A643B6
accent
#3FE9D0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A831B

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

Preview Lab → · Contrast checker → · Palette generator →

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