#2A851A#2A851A

#2A851A is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.2% C 0.164 H 141.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2A851A
RGBrgb(42, 133, 26)
HSLhsl(111, 67%, 31%)
HSVhsv(111, 80%, 52%)
CMYKcmyk(68.4%, 0%, 80.5%, 47.8%)
CIE-LABlab(48.69, -46.55, 46.04)
CIE-LCHlch(48.69, 65.47, 135.31°)
OKLaboklab(54.24% -0.1273 0.1028)
OKLCHoklch(54.24% 0.164 141.1)
XYZxyz(9.5283, 17.3409, 3.8221)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A851A #751A85
analogous
#5F851A #2A851A #1A853F
triadic
#2A851A #1A2A85 #851A2A
tetradic
#2A851A #1A5F85 #751A85 #853F1A
square
#2A851A #1A5F85 #751A85 #853F1A
split-complementary
#2A851A #3F1A85 #851A5F
monochromatic
#0A1F06 #1A5210 #2A851A #3AB824 #57DA40

Accessibility & contrast

On white

4.70
#2A851A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#2A851A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A851A
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A851A#FFFFFF#000000##FFFFFF
##2A851A1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#188171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a851a;
/* rgb */ color: rgb(42, 133, 26);
/* oklch */ color: oklch(54.2% 0.164 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a960',
    500: '#2a851a',
    950: '#000000',
  },
}
SCSS
$custom: #2a851a;
$custom-light: #71a960;
$custom-dark: #000000;
JSON
{
  "hex": "#2a851a",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 111.028,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54236,
    "c": 0.16357,
    "h": 141.1
  },
  "luminance": 0.17342
}

Semantic roles & 50–950 ramp

primary
#2A851A
secondary
#A742B8
accent
#3EEAD0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A851A

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

Preview Lab → · Contrast checker → · Palette generator →

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