#2A8517#2A8517

#2A8517 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.2% C 0.165 H 140.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2A8517
RGBrgb(42, 133, 23)
HSLhsl(110, 71%, 31%)
HSVhsv(110, 83%, 52%)
CMYKcmyk(68.4%, 0%, 82.7%, 47.8%)
CIE-LABlab(48.67, -46.74, 46.99)
CIE-LCHlch(48.67, 66.28, 134.85°)
OKLaboklab(54.22% -0.1279 0.1043)
OKLCHoklch(54.22% 0.165 140.8)
XYZxyz(9.4965, 17.3282, 3.6547)
Luminance0.1733 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8517 #721785
analogous
#618517 #2A8517 #17853B
triadic
#2A8517 #172A85 #85172A
tetradic
#2A8517 #176185 #721785 #853B17
square
#2A8517 #176185 #721785 #853B17
split-complementary
#2A8517 #3B1785 #851761
monochromatic
#091D05 #1A510E #2A8517 #3AB920 #56DD3A

Accessibility & contrast

On white

4.70
#2A8517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#2A8517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8517
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8517#FFFFFF#000000##FFFFFF
##2A85171.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#198171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a8517;
/* rgb */ color: rgb(42, 133, 23);
/* oklch */ color: oklch(54.2% 0.165 140.8);
Tailwind
colors: {
  custom: {
    50: '#72a95e',
    500: '#2a8517',
    950: '#000000',
  },
}
SCSS
$custom: #2a8517;
$custom-light: #72a95e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8517",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 109.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54217,
    "c": 0.16505,
    "h": 140.8
  },
  "luminance": 0.17329
}

Semantic roles & 50–950 ramp

primary
#2A8517
secondary
#A43FB9
accent
#3BEDCE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A8517

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

Preview Lab → · Contrast checker → · Palette generator →

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