#2A981F#2A981F

#2A981F is a mid, vivid green. Relative luminance 0.230; OKLCH L 59.6% C 0.183 H 141.8°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#2A981F
RGBrgb(42, 152, 31)
HSLhsl(115, 66%, 36%)
HSVhsv(115, 80%, 60%)
CMYKcmyk(72.4%, 0%, 79.6%, 40.4%)
CIE-LABlab(55.12, -52.76, 50.58)
CIE-LCHlch(55.12, 73.09, 136.21°)
OKLaboklab(59.58% -0.1438 0.113)
OKLCHoklch(59.58% 0.183 141.8)
XYZxyz(12.4297, 23.0463, 5.0894)
Luminance0.2305 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A981F #8D1F98
analogous
#66981F #2A981F #1F9850
triadic
#2A981F #1F2A98 #981F2A
tetradic
#2A981F #1F6698 #8D1F98 #98501F
square
#2A981F #1F6698 #8D1F98 #98501F
split-complementary
#2A981F #501F98 #981F66
monochromatic
#0E320A #1C6515 #2A981F #38CB29 #61DC55

Accessibility & contrast

On white

3.74
#2A981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#2A981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A981F
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A981F#FFFFFF#000000##000000
##2A981F1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#8F812D
Tritanopia (blue-blind)
#089381
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #2a981f;
/* rgb */ color: rgb(42, 152, 31);
/* oklch */ color: oklch(59.6% 0.183 141.8);
Tailwind
colors: {
  custom: {
    50: '#75b765',
    500: '#2a981f',
    950: '#000000',
  },
}
SCSS
$custom: #2a981f;
$custom-light: #75b765;
$custom-dark: #000000;
JSON
{
  "hex": "#2a981f",
  "rgb": {
    "r": 42,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 114.545,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59582,
    "c": 0.18283,
    "h": 141.8
  },
  "luminance": 0.23048
}

Semantic roles & 50–950 ramp

primary
#2A981F
secondary
#B653C0
accent
#3FE9DA
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2A981F

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

Preview Lab → · Contrast checker → · Palette generator →

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