#2A8A31#2A8A31

#2A8A31 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.154 H 144.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#2A8A31
RGBrgb(42, 138, 49)
HSLhsl(124, 53%, 35%)
HSVhsv(124, 70%, 54%)
CMYKcmyk(69.6%, 0%, 64.5%, 45.9%)
CIE-LABlab(50.56, -46.24, 38.68)
CIE-LCHlch(50.56, 60.28, 140.09°)
OKLaboklab(55.84% -0.1252 0.0903)
OKLCHoklch(55.84% 0.154 144.2)
XYZxyz(10.5970, 18.8898, 5.9928)
Luminance0.1889 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A31 #8A2A83
analogous
#538A2A #2A8A31 #2A8A61
triadic
#2A8A31 #312A8A #8A312A
tetradic
#2A8A31 #2A538A #8A2A83 #8A612A
square
#2A8A31 #2A538A #8A2A83 #8A612A
split-complementary
#2A8A31 #612A8A #8A2A53
monochromatic
#0D2C10 #1C5B20 #2A8A31 #38B942 #60CF68

Accessibility & contrast

On white

4.39
#2A8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#2A8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A31
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A31#FFFFFF#000000##000000
##2A8A311.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D27
Deuteranopia (green-blind)
#817539
Tritanopia (blue-blind)
#0D8677
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8a31;
/* rgb */ color: rgb(42, 138, 49);
/* oklch */ color: oklch(55.8% 0.154 144.2);
Tailwind
colors: {
  custom: {
    50: '#71ad6d',
    500: '#2a8a31',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a31;
$custom-light: #71ad6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a31",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 124.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55843,
    "c": 0.15436,
    "h": 144.2
  },
  "luminance": 0.18891
}

Semantic roles & 50–950 ramp

primary
#2A8A31
secondary
#B45BAE
accent
#4BD2DD
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2A8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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