#2A8E1B#2A8E1B

#2A8E1B is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.8% C 0.173 H 141.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#2A8E1B
RGBrgb(42, 142, 27)
HSLhsl(112, 68%, 33%)
HSVhsv(112, 81%, 56%)
CMYKcmyk(70.4%, 0%, 81%, 44.3%)
CIE-LABlab(51.74, -49.63, 48.63)
CIE-LCHlch(51.74, 69.49, 135.58°)
OKLaboklab(56.77% -0.1355 0.1083)
OKLCHoklch(56.77% 0.173 141.4)
XYZxyz(10.8251, 19.9162, 4.3104)
Luminance0.1992 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8E1B #7F1B8E
analogous
#638E1B #2A8E1B #1B8E45
triadic
#2A8E1B #1B2A8E #8E1B2A
tetradic
#2A8E1B #1B638E #7F1B8E #8E451B
square
#2A8E1B #1B638E #7F1B8E #8E451B
split-complementary
#2A8E1B #451B8E #8E1B63
monochromatic
#0C2707 #1B5B11 #2A8E1B #39C125 #5BDC47

Accessibility & contrast

On white

4.21
#2A8E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#2A8E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8E1B
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8E1B#FFFFFF#000000##000000
##2A8E1B1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#138979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2a8e1b;
/* rgb */ color: rgb(42, 142, 27);
/* oklch */ color: oklch(56.8% 0.173 141.4);
Tailwind
colors: {
  custom: {
    50: '#73b062',
    500: '#2a8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #2a8e1b;
$custom-light: #73b062;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8e1b",
  "rgb": {
    "r": 42,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 112.174,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56771,
    "c": 0.17348,
    "h": 141.4
  },
  "luminance": 0.19917
}

Semantic roles & 50–950 ramp

primary
#2A8E1B
secondary
#AE47BE
accent
#3DEBD4
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091105
muted
#7B807A

Preview Lab

Preview with #2A8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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