#2A8F1B#2A8F1B

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

Color values

HEX#2A8F1B
RGBrgb(42, 143, 27)
HSLhsl(112, 68%, 33%)
HSVhsv(112, 81%, 56%)
CMYKcmyk(70.6%, 0%, 81.1%, 43.9%)
CIE-LABlab(52.08, -49.97, 48.95)
CIE-LCHlch(52.08, 69.96, 135.59°)
OKLaboklab(57.05% -0.1364 0.109)
OKLCHoklch(57.05% 0.175 141.4)
XYZxyz(10.9745, 20.2151, 4.3602)
Luminance0.2022 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8F1B #801B8F
analogous
#648F1B #2A8F1B #1B8F46
triadic
#2A8F1B #1B2A8F #8F1B2A
tetradic
#2A8F1B #1B648F #801B8F #8F461B
square
#2A8F1B #1B648F #801B8F #8F461B
split-complementary
#2A8F1B #461B8F #8F1B64
monochromatic
#0C2808 #1B5C11 #2A8F1B #39C225 #5BDC48

Accessibility & contrast

On white

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

On black

5.04
#2A8F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8F1B
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8F1B#FFFFFF#000000##000000
##2A8F1B1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#128A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2a8f1b;
/* rgb */ color: rgb(42, 143, 27);
/* oklch */ color: oklch(57.1% 0.175 141.4);
Tailwind
colors: {
  custom: {
    50: '#74b162',
    500: '#2a8f1b',
    950: '#000000',
  },
}
SCSS
$custom: #2a8f1b;
$custom-light: #74b162;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8f1b",
  "rgb": {
    "r": 42,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 112.241,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57051,
    "c": 0.17463,
    "h": 141.4
  },
  "luminance": 0.20216
}

Semantic roles & 50–950 ramp

primary
#2A8F1B
secondary
#AF48BE
accent
#3DEBD5
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #2A8F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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