#2A8427#2A8427

#2A8427 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.1% C 0.154 H 142.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2A8427
RGBrgb(42, 132, 39)
HSLhsl(118, 54%, 34%)
HSVhsv(118, 70%, 52%)
CMYKcmyk(68.2%, 0%, 70.5%, 48.2%)
CIE-LABlab(48.44, -45.12, 40.83)
CIE-LCHlch(48.44, 60.85, 137.86°)
OKLaboklab(54.06% -0.1227 0.0937)
OKLCHoklch(54.06% 0.154 142.6)
XYZxyz(9.5718, 17.1403, 4.7230)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8427 #812784
analogous
#588427 #2A8427 #278452
triadic
#2A8427 #272A84 #84272A
tetradic
#2A8427 #275884 #812784 #845227
square
#2A8427 #275884 #812784 #845227
split-complementary
#2A8427 #522784 #842758
monochromatic
#0C260B #1B5519 #2A8427 #39B335 #5CCE58

Accessibility & contrast

On white

4.74
#2A8427 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2A8427 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8427
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8427#FFFFFF#000000##FFFFFF
##2A84271.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87771A
Deuteranopia (green-blind)
#7C7030
Tritanopia (blue-blind)
#158071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a8427;
/* rgb */ color: rgb(42, 132, 39);
/* oklch */ color: oklch(54.1% 0.154 142.6);
Tailwind
colors: {
  custom: {
    50: '#71a966',
    500: '#2a8427',
    950: '#000000',
  },
}
SCSS
$custom: #2a8427;
$custom-light: #71a966;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8427",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 39
  },
  "hsl": {
    "h": 118.065,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54057,
    "c": 0.15435,
    "h": 142.6
  },
  "luminance": 0.17141
}

Semantic roles & 50–950 ramp

primary
#2A8427
secondary
#AF54B2
accent
#4ADED9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #2A8427

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

Preview Lab → · Contrast checker → · Palette generator →

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