#2A8316#2A8316

#2A8316 is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.6% C 0.163 H 140.7°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#2A8316
RGBrgb(42, 131, 22)
HSLhsl(109, 71%, 30%)
HSVhsv(109, 83%, 51%)
CMYKcmyk(67.9%, 0%, 83.2%, 48.6%)
CIE-LABlab(47.98, -46.09, 46.65)
CIE-LCHlch(47.98, 65.58, 134.65°)
OKLaboklab(53.65% -0.1262 0.1035)
OKLCHoklch(53.65% 0.163 140.7)
XYZxyz(9.2155, 16.7818, 3.5125)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8316 #6F1683
analogous
#608316 #2A8316 #168339
triadic
#2A8316 #162A83 #83162A
tetradic
#2A8316 #166083 #6F1683 #833916
square
#2A8316 #166083 #6F1683 #833916
split-complementary
#2A8316 #391683 #831660
monochromatic
#081A04 #194F0D #2A8316 #3BB71F #55DD36

Accessibility & contrast

On white

4.82
#2A8316 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A8316
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8316#FFFFFF#000000##FFFFFF
##2A83161.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#1A7F6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2a8316;
/* rgb */ color: rgb(42, 131, 22);
/* oklch */ color: oklch(53.6% 0.163 140.7);
Tailwind
colors: {
  custom: {
    50: '#71a85e',
    500: '#2a8316',
    950: '#000000',
  },
}
SCSS
$custom: #2a8316;
$custom-light: #71a85e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8316",
  "rgb": {
    "r": 42,
    "g": 131,
    "b": 22
  },
  "hsl": {
    "h": 108.991,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.53646,
    "c": 0.1632,
    "h": 140.7
  },
  "luminance": 0.16783
}

Semantic roles & 50–950 ramp

primary
#2A8316
secondary
#A13DB7
accent
#3AEECD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A8316

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

Preview Lab → · Contrast checker → · Palette generator →

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