#2A851F#2A851F

#2A851F is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.3% C 0.161 H 141.6°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#2A851F
RGBrgb(42, 133, 31)
HSLhsl(114, 62%, 32%)
HSVhsv(114, 77%, 52%)
CMYKcmyk(68.4%, 0%, 76.7%, 47.8%)
CIE-LABlab(48.72, -46.19, 44.31)
CIE-LCHlch(48.72, 64.01, 136.19°)
OKLaboklab(54.27% -0.126 0.0999)
OKLCHoklch(54.27% 0.161 141.6)
XYZxyz(9.5892, 17.3652, 4.1425)
Luminance0.1737 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A851F #7A1F85
analogous
#5D851F #2A851F #1F8547
triadic
#2A851F #1F2A85 #851F2A
tetradic
#2A851F #1F5D85 #7A1F85 #85471F
square
#2A851F #1F5D85 #7A1F85 #85471F
split-complementary
#2A851F #471F85 #851F5D
monochromatic
#0B2208 #1A5313 #2A851F #3AB72B #59D54A

Accessibility & contrast

On white

4.69
#2A851F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A851F
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A851F#FFFFFF#000000##FFFFFF
##2A851F1.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780A
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#178171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a851f;
/* rgb */ color: rgb(42, 133, 31);
/* oklch */ color: oklch(54.3% 0.161 141.6);
Tailwind
colors: {
  custom: {
    50: '#71a962',
    500: '#2a851f',
    950: '#000000',
  },
}
SCSS
$custom: #2a851f;
$custom-light: #71a962;
$custom-dark: #000000;
JSON
{
  "hex": "#2a851f",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 113.529,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5427,
    "c": 0.1608,
    "h": 141.6
  },
  "luminance": 0.17366
}

Semantic roles & 50–950 ramp

primary
#2A851F
secondary
#AB49B7
accent
#43E5D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2A851F

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

Preview Lab → · Contrast checker → · Palette generator →

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