#2A8528#2A8528

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

Color values

HEX#2A8528
RGBrgb(42, 133, 40)
HSLhsl(119, 54%, 34%)
HSVhsv(119, 70%, 52%)
CMYKcmyk(68.4%, 0%, 69.9%, 47.8%)
CIE-LABlab(48.78, -45.39, 40.77)
CIE-LCHlch(48.78, 61.01, 138.07°)
OKLaboklab(54.35% -0.1233 0.0937)
OKLCHoklch(54.35% 0.155 142.8)
XYZxyz(9.7248, 17.4195, 4.8569)
Luminance0.1742 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8528 #832885
analogous
#598528 #2A8528 #288555
triadic
#2A8528 #282A85 #85282A
tetradic
#2A8528 #285985 #832885 #855528
square
#2A8528 #285985 #832885 #855528
split-complementary
#2A8528 #552885 #852859
monochromatic
#0C270C #1B561A #2A8528 #39B436 #5DCD5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8528#FFFFFF#000000##FFFFFF
##2A85281.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)
#88781B
Deuteranopia (green-blind)
#7D7131
Tritanopia (blue-blind)
#158172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a8528;
/* rgb */ color: rgb(42, 133, 40);
/* oklch */ color: oklch(54.3% 0.155 142.8);
Tailwind
colors: {
  custom: {
    50: '#71a967',
    500: '#2a8528',
    950: '#000000',
  },
}
SCSS
$custom: #2a8528;
$custom-light: #71a967;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8528",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 118.71,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54348,
    "c": 0.15488,
    "h": 142.8
  },
  "luminance": 0.1742
}

Semantic roles & 50–950 ramp

primary
#2A8528
secondary
#B156B3
accent
#4BDDDA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8528

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

Preview Lab → · Contrast checker → · Palette generator →

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