#2A8527#2A8527

#2A8527 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.3% C 0.156 H 142.6°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2A8527
RGBrgb(42, 133, 39)
HSLhsl(118, 55%, 34%)
HSVhsv(118, 71%, 52%)
CMYKcmyk(68.4%, 0%, 70.7%, 47.8%)
CIE-LABlab(48.78, -45.48, 41.19)
CIE-LCHlch(48.78, 61.36, 137.84°)
OKLaboklab(54.34% -0.1237 0.0944)
OKLCHoklch(54.34% 0.156 142.6)
XYZxyz(9.7080, 17.4128, 4.7685)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8527 #822785
analogous
#598527 #2A8527 #278553
triadic
#2A8527 #272A85 #85272A
tetradic
#2A8527 #275985 #822785 #855327
square
#2A8527 #275985 #822785 #855327
split-complementary
#2A8527 #532785 #852759
monochromatic
#0C260B #1B5619 #2A8527 #39B435 #5CCE58

Accessibility & contrast

On white

4.68
#2A8527 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#2A8527 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8527
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8527#FFFFFF#000000##FFFFFF
##2A85271.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887819
Deuteranopia (green-blind)
#7D7130
Tritanopia (blue-blind)
#158172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a8527;
/* rgb */ color: rgb(42, 133, 39);
/* oklch */ color: oklch(54.3% 0.156 142.6);
Tailwind
colors: {
  custom: {
    50: '#71a966',
    500: '#2a8527',
    950: '#000000',
  },
}
SCSS
$custom: #2a8527;
$custom-light: #71a966;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8527",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 39
  },
  "hsl": {
    "h": 118.085,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54338,
    "c": 0.15559,
    "h": 142.6
  },
  "luminance": 0.17414
}

Semantic roles & 50–950 ramp

primary
#2A8527
secondary
#B055B3
accent
#4ADED9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8527

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

Preview Lab → · Contrast checker → · Palette generator →

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