#2A8F1F#2A8F1F

#2A8F1F is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.173 H 141.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2A8F1F
RGBrgb(42, 143, 31)
HSLhsl(114, 64%, 34%)
HSVhsv(114, 78%, 56%)
CMYKcmyk(70.6%, 0%, 78.3%, 43.9%)
CIE-LABlab(52.10, -49.70, 47.66)
CIE-LCHlch(52.10, 68.86, 136.20°)
OKLaboklab(57.08% -0.1355 0.1069)
OKLCHoklch(57.08% 0.173 141.7)
XYZxyz(11.0240, 20.2349, 4.6208)
Luminance0.2024 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8F1F #841F8F
analogous
#628F1F #2A8F1F #1F8F4C
triadic
#2A8F1F #1F2A8F #8F1F2A
tetradic
#2A8F1F #1F628F #841F8F #8F4C1F
square
#2A8F1F #1F628F #841F8F #8F4C1F
split-complementary
#2A8F1F #4C1F8F #8F1F62
monochromatic
#0C2A09 #1B5D14 #2A8F1F #39C12A #5DD94F

Accessibility & contrast

On white

4.16
#2A8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#2A8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8F1F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8F1F#FFFFFF#000000##000000
##2A8F1F1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938104
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#118A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2a8f1f;
/* rgb */ color: rgb(42, 143, 31);
/* oklch */ color: oklch(57.1% 0.173 141.7);
Tailwind
colors: {
  custom: {
    50: '#73b164',
    500: '#2a8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a8f1f;
$custom-light: #73b164;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8f1f",
  "rgb": {
    "r": 42,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 114.107,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57077,
    "c": 0.17257,
    "h": 141.7
  },
  "luminance": 0.20236
}

Semantic roles & 50–950 ramp

primary
#2A8F1F
secondary
#B14EBC
accent
#40E7D7
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2A8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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