#2A8C1F#2A8C1F

#2A8C1F is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.169 H 141.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2A8C1F
RGBrgb(42, 140, 31)
HSLhsl(114, 64%, 34%)
HSVhsv(114, 78%, 55%)
CMYKcmyk(70%, 0%, 77.9%, 45.1%)
CIE-LABlab(51.09, -48.66, 46.66)
CIE-LCHlch(51.09, 67.42, 136.20°)
OKLaboklab(56.24% -0.1327 0.1048)
OKLCHoklch(56.24% 0.169 141.7)
XYZxyz(10.5797, 19.3462, 4.4727)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8C1F #811F8C
analogous
#608C1F #2A8C1F #1F8C4A
triadic
#2A8C1F #1F2A8C #8C1F2A
tetradic
#2A8C1F #1F608C #811F8C #8C4A1F
square
#2A8C1F #1F608C #811F8C #8C4A1F
split-complementary
#2A8C1F #4A1F8C #8C1F60
monochromatic
#0C2809 #1B5A14 #2A8C1F #39BE2A #5CD84E

Accessibility & contrast

On white

4.31
#2A8C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#2A8C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8C1F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8C1F#FFFFFF#000000##000000
##2A8C1F1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#84772B
Tritanopia (blue-blind)
#138877
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2a8c1f;
/* rgb */ color: rgb(42, 140, 31);
/* oklch */ color: oklch(56.2% 0.169 141.7);
Tailwind
colors: {
  custom: {
    50: '#73af63',
    500: '#2a8c1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a8c1f;
$custom-light: #73af63;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8c1f",
  "rgb": {
    "r": 42,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 113.945,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56237,
    "c": 0.16909,
    "h": 141.7
  },
  "luminance": 0.19347
}

Semantic roles & 50–950 ramp

primary
#2A8C1F
secondary
#AF4CBB
accent
#41E7D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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