#2A8A27#2A8A27

#2A8A27 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.7% C 0.162 H 142.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A8A27
RGBrgb(42, 138, 39)
HSLhsl(118, 56%, 35%)
HSVhsv(118, 72%, 54%)
CMYKcmyk(69.6%, 0%, 71.7%, 45.9%)
CIE-LABlab(50.47, -47.29, 42.97)
CIE-LCHlch(50.47, 63.90, 137.74°)
OKLaboklab(55.74% -0.1286 0.0982)
OKLCHoklch(55.74% 0.162 142.6)
XYZxyz(10.4089, 18.8146, 5.0021)
Luminance0.1882 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A27 #87278A
analogous
#5B8A27 #2A8A27 #278A56
triadic
#2A8A27 #272A8A #8A272A
tetradic
#2A8A27 #275B8A #87278A #8A5627
square
#2A8A27 #275B8A #87278A #8A5627
split-complementary
#2A8A27 #56278A #8A275B
monochromatic
#0D2B0C #1B5A1A #2A8A27 #39BA34 #5ED15B

Accessibility & contrast

On white

4.41
#2A8A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#2A8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A27
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A27#FFFFFF#000000##000000
##2A8A271.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D18
Deuteranopia (green-blind)
#827531
Tritanopia (blue-blind)
#128676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8a27;
/* rgb */ color: rgb(42, 138, 39);
/* oklch */ color: oklch(55.7% 0.162 142.6);
Tailwind
colors: {
  custom: {
    50: '#72ad67',
    500: '#2a8a27',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a27;
$custom-light: #72ad67;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a27",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 118.182,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.55741,
    "c": 0.16176,
    "h": 142.6
  },
  "luminance": 0.18816
}

Semantic roles & 50–950 ramp

primary
#2A8A27
secondary
#B357B6
accent
#49DFDB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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