#2A8B1F#2A8B1F

#2A8B1F is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.0% C 0.168 H 141.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#2A8B1F
RGBrgb(42, 139, 31)
HSLhsl(114, 64%, 33%)
HSVhsv(114, 78%, 55%)
CMYKcmyk(69.8%, 0%, 77.7%, 45.5%)
CIE-LABlab(50.75, -48.31, 46.33)
CIE-LCHlch(50.75, 66.94, 136.20°)
OKLaboklab(55.96% -0.1318 0.1041)
OKLCHoklch(55.96% 0.168 141.7)
XYZxyz(10.4342, 19.0553, 4.4242)
Luminance0.1906 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8B1F #801F8B
analogous
#608B1F #2A8B1F #1F8B4A
triadic
#2A8B1F #1F2A8B #8B1F2A
tetradic
#2A8B1F #1F608B #801F8B #8B4A1F
square
#2A8B1F #1F608B #801F8B #8B4A1F
split-complementary
#2A8B1F #4A1F8B #8B1F60
monochromatic
#0C2709 #1B5914 #2A8B1F #39BD2A #5BD74D

Accessibility & contrast

On white

4.36
#2A8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#2A8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8B1F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8B1F#FFFFFF#000000##000000
##2A8B1F1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E06
Deuteranopia (green-blind)
#83762B
Tritanopia (blue-blind)
#148776
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a8b1f;
/* rgb */ color: rgb(42, 139, 31);
/* oklch */ color: oklch(56.0% 0.168 141.7);
Tailwind
colors: {
  custom: {
    50: '#73ae63',
    500: '#2a8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a8b1f;
$custom-light: #73ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8b1f",
  "rgb": {
    "r": 42,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 113.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55957,
    "c": 0.16791,
    "h": 141.7
  },
  "luminance": 0.19056
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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