#2A851C#2A851C

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

Color values

HEX#2A851C
RGBrgb(42, 133, 28)
HSLhsl(112, 65%, 32%)
HSVhsv(112, 79%, 52%)
CMYKcmyk(68.4%, 0%, 78.9%, 47.8%)
CIE-LABlab(48.70, -46.41, 45.38)
CIE-LCHlch(48.70, 64.91, 135.65°)
OKLaboklab(54.25% -0.1268 0.1017)
OKLCHoklch(54.25% 0.163 141.3)
XYZxyz(9.5515, 17.3502, 3.9439)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A851C #771C85
analogous
#5F851C #2A851C #1C8543
triadic
#2A851C #1C2A85 #851C2A
tetradic
#2A851C #1C5F85 #771C85 #85431C
square
#2A851C #1C5F85 #771C85 #85431C
split-complementary
#2A851C #431C85 #851C5F
monochromatic
#0A2007 #1A5211 #2A851C #3AB827 #58D844

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A851C#FFFFFF#000000##FFFFFF
##2A851C1.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)
#887803
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#188171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a851c;
/* rgb */ color: rgb(42, 133, 28);
/* oklch */ color: oklch(54.2% 0.163 141.3);
Tailwind
colors: {
  custom: {
    50: '#71a961',
    500: '#2a851c',
    950: '#000000',
  },
}
SCSS
$custom: #2a851c;
$custom-light: #71a961;
$custom-dark: #000000;
JSON
{
  "hex": "#2a851c",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 28
  },
  "hsl": {
    "h": 112,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54249,
    "c": 0.16251,
    "h": 141.3
  },
  "luminance": 0.17351
}

Semantic roles & 50–950 ramp

primary
#2A851C
secondary
#A945B8
accent
#40E8D2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A851C

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

Preview Lab → · Contrast checker → · Palette generator →

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