#2A8521#2A8521

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

Color values

HEX#2A8521
RGBrgb(42, 133, 33)
HSLhsl(115, 60%, 33%)
HSVhsv(115, 75%, 52%)
CMYKcmyk(68.4%, 0%, 75.2%, 47.8%)
CIE-LABlab(48.73, -46.03, 43.57)
CIE-LCHlch(48.73, 63.38, 136.57°)
OKLaboklab(54.29% -0.1255 0.0986)
OKLCHoklch(54.29% 0.16 141.8)
XYZxyz(9.6164, 17.3761, 4.2857)
Luminance0.1738 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8521 #7C2185
analogous
#5C8521 #2A8521 #21854A
triadic
#2A8521 #212A85 #85212A
tetradic
#2A8521 #215C85 #7C2185 #854A21
square
#2A8521 #215C85 #7C2185 #854A21
split-complementary
#2A8521 #4A2185 #85215C
monochromatic
#0B2309 #1B5415 #2A8521 #39B62D #59D34D

Accessibility & contrast

On white

4.69
#2A8521 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A8521
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8521#FFFFFF#000000##FFFFFF
##2A85211.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780F
Deuteranopia (green-blind)
#7E712B
Tritanopia (blue-blind)
#178172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a8521;
/* rgb */ color: rgb(42, 133, 33);
/* oklch */ color: oklch(54.3% 0.160 141.8);
Tailwind
colors: {
  custom: {
    50: '#71a963',
    500: '#2a8521',
    950: '#000000',
  },
}
SCSS
$custom: #2a8521;
$custom-light: #71a963;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8521",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 114.6,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54286,
    "c": 0.15959,
    "h": 141.8
  },
  "luminance": 0.17377
}

Semantic roles & 50–950 ramp

primary
#2A8521
secondary
#AD4CB6
accent
#44E3D5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8521

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

Preview Lab → · Contrast checker → · Palette generator →

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