#2A8417#2A8417

#2A8417 is a mid, vivid green. Relative luminance 0.171; OKLCH L 53.9% C 0.164 H 140.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A8417
RGBrgb(42, 132, 23)
HSLhsl(110, 70%, 30%)
HSVhsv(110, 83%, 52%)
CMYKcmyk(68.2%, 0%, 82.6%, 48.2%)
CIE-LABlab(48.33, -46.39, 46.67)
CIE-LCHlch(48.33, 65.80, 134.83°)
OKLaboklab(53.94% -0.127 0.1036)
OKLCHoklch(53.94% 0.164 140.8)
XYZxyz(9.3603, 17.0557, 3.6092)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8417 #711784
analogous
#618417 #2A8417 #17843A
triadic
#2A8417 #172A84 #84172A
tetradic
#2A8417 #176184 #711784 #843A17
square
#2A8417 #176184 #711784 #843A17
split-complementary
#2A8417 #3A1784 #841761
monochromatic
#091C05 #19500E #2A8417 #3BB820 #55DC39

Accessibility & contrast

On white

4.76
#2A8417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#2A8417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8417
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8417#FFFFFF#000000##FFFFFF
##2A84171.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7D7024
Tritanopia (blue-blind)
#198070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a8417;
/* rgb */ color: rgb(42, 132, 23);
/* oklch */ color: oklch(53.9% 0.164 140.8);
Tailwind
colors: {
  custom: {
    50: '#71a95e',
    500: '#2a8417',
    950: '#000000',
  },
}
SCSS
$custom: #2a8417;
$custom-light: #71a95e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8417",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 109.541,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53935,
    "c": 0.16389,
    "h": 140.8
  },
  "luminance": 0.17057
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A8417

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

Preview Lab → · Contrast checker → · Palette generator →

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