#2A831C#2A831C

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

Color values

HEX#2A831C
RGBrgb(42, 131, 28)
HSLhsl(112, 65%, 31%)
HSVhsv(112, 79%, 51%)
CMYKcmyk(67.9%, 0%, 78.6%, 48.6%)
CIE-LABlab(48.02, -45.70, 44.71)
CIE-LCHlch(48.02, 63.93, 135.63°)
OKLaboklab(53.68% -0.1248 0.1003)
OKLCHoklch(53.68% 0.16 141.2)
XYZxyz(9.2803, 16.8077, 3.8535)
Luminance0.1681 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A831C #751C83
analogous
#5D831C #2A831C #1C8341
triadic
#2A831C #1C2A83 #831C2A
tetradic
#2A831C #1C5D83 #751C83 #83411C
square
#2A831C #1C5D83 #751C83 #83411C
split-complementary
#2A831C #411C83 #831C5D
monochromatic
#0A1E06 #1A5111 #2A831C #3AB527 #57D743

Accessibility & contrast

On white

4.81
#2A831C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A831C
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A831C#FFFFFF#000000##FFFFFF
##2A831C1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a831c;
/* rgb */ color: rgb(42, 131, 28);
/* oklch */ color: oklch(53.7% 0.160 141.2);
Tailwind
colors: {
  custom: {
    50: '#71a860',
    500: '#2a831c',
    950: '#000000',
  },
}
SCSS
$custom: #2a831c;
$custom-light: #71a860;
$custom-dark: #000000;
JSON
{
  "hex": "#2a831c",
  "rgb": {
    "r": 42,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 111.845,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53684,
    "c": 0.16014,
    "h": 141.2
  },
  "luminance": 0.16809
}

Semantic roles & 50–950 ramp

primary
#2A831C
secondary
#A745B6
accent
#40E8D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A831C

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

Preview Lab → · Contrast checker → · Palette generator →

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