#2A8518#2A8518

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

Color values

HEX#2A8518
RGBrgb(42, 133, 24)
HSLhsl(110, 69%, 31%)
HSVhsv(110, 82%, 52%)
CMYKcmyk(68.4%, 0%, 82%, 47.8%)
CIE-LABlab(48.68, -46.68, 46.68)
CIE-LCHlch(48.68, 66.02, 135.00°)
OKLaboklab(54.22% -0.1277 0.1038)
OKLCHoklch(54.22% 0.165 140.9)
XYZxyz(9.5068, 17.3323, 3.7084)
Luminance0.1733 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8518 #731885
analogous
#608518 #2A8518 #18853C
triadic
#2A8518 #182A85 #85182A
tetradic
#2A8518 #186085 #731885 #853C18
square
#2A8518 #186085 #731885 #853C18
split-complementary
#2A8518 #3C1885 #851860
monochromatic
#091D05 #1A510F #2A8518 #3AB921 #56DC3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8518#FFFFFF#000000##FFFFFF
##2A85181.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: #2a8518;
/* rgb */ color: rgb(42, 133, 24);
/* oklch */ color: oklch(54.2% 0.165 140.9);
Tailwind
colors: {
  custom: {
    50: '#72a95f',
    500: '#2a8518',
    950: '#000000',
  },
}
SCSS
$custom: #2a8518;
$custom-light: #72a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8518",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 110.092,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54223,
    "c": 0.16457,
    "h": 140.9
  },
  "luminance": 0.17333
}

Semantic roles & 50–950 ramp

primary
#2A8518
secondary
#A540B9
accent
#3CECCF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A8518

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

Preview Lab → · Contrast checker → · Palette generator →

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