#2A8312#2A8312

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

Color values

HEX#2A8312
RGBrgb(42, 131, 18)
HSLhsl(107, 76%, 29%)
HSVhsv(107, 86%, 51%)
CMYKcmyk(67.9%, 0%, 86.3%, 48.6%)
CIE-LABlab(47.97, -46.31, 47.77)
CIE-LCHlch(47.97, 66.54, 134.11°)
OKLaboklab(53.63% -0.127 0.1052)
OKLCHoklch(53.63% 0.165 140.4)
XYZxyz(9.1799, 16.7676, 3.3248)
Luminance0.1677 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8312 #6B1283
analogous
#638312 #2A8312 #128333
triadic
#2A8312 #122A83 #83122A
tetradic
#2A8312 #126383 #6B1283 #833312
square
#2A8312 #126383 #6B1283 #833312
split-complementary
#2A8312 #331283 #831263
monochromatic
#091B04 #194D0B #2A8312 #3BB919 #54E22D

Accessibility & contrast

On white

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

On black

4.35
#2A8312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A8312#FFFFFF#000000##FFFFFF
##2A83121.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a8312;
/* rgb */ color: rgb(42, 131, 18);
/* oklch */ color: oklch(53.6% 0.165 140.4);
Tailwind
colors: {
  custom: {
    50: '#71a85c',
    500: '#2a8312',
    950: '#000000',
  },
}
SCSS
$custom: #2a8312;
$custom-light: #71a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8312",
  "rgb": {
    "r": 42,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 107.257,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53625,
    "c": 0.16492,
    "h": 140.4
  },
  "luminance": 0.16769
}

Semantic roles & 50–950 ramp

primary
#2A8312
secondary
#9D38B8
accent
#35F2CA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A8312

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

Preview Lab → · Contrast checker → · Palette generator →

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