#2A8522#2A8522

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

Color values

HEX#2A8522
RGBrgb(42, 133, 34)
HSLhsl(115, 59%, 33%)
HSVhsv(115, 74%, 52%)
CMYKcmyk(68.4%, 0%, 74.4%, 47.8%)
CIE-LABlab(48.74, -45.94, 43.19)
CIE-LCHlch(48.74, 63.06, 136.77°)
OKLaboklab(54.29% -0.1252 0.098)
OKLCHoklch(54.29% 0.159 142)
XYZxyz(9.6306, 17.3818, 4.3606)
Luminance0.1738 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8522 #7D2285
analogous
#5B8522 #2A8522 #22854C
triadic
#2A8522 #222A85 #85222A
tetradic
#2A8522 #225B85 #7D2285 #854C22
square
#2A8522 #225B85 #7D2285 #854C22
split-complementary
#2A8522 #4C2285 #85225B
monochromatic
#0B2409 #1B5416 #2A8522 #39B62E #5AD24F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8522#FFFFFF#000000##FFFFFF
##2A85221.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)
#887811
Deuteranopia (green-blind)
#7D712C
Tritanopia (blue-blind)
#168172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a8522;
/* rgb */ color: rgb(42, 133, 34);
/* oklch */ color: oklch(54.3% 0.159 142.0);
Tailwind
colors: {
  custom: {
    50: '#71a964',
    500: '#2a8522',
    950: '#000000',
  },
}
SCSS
$custom: #2a8522;
$custom-light: #71a964;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8522",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 115.152,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54294,
    "c": 0.15895,
    "h": 142
  },
  "luminance": 0.17383
}

Semantic roles & 50–950 ramp

primary
#2A8522
secondary
#AD4DB6
accent
#45E2D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8522

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

Preview Lab → · Contrast checker → · Palette generator →

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