#2A841B#2A841B

#2A841B is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.162 H 141.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A841B
RGBrgb(42, 132, 27)
HSLhsl(111, 66%, 31%)
HSVhsv(111, 80%, 52%)
CMYKcmyk(68.2%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.35, -46.13, 45.38)
CIE-LCHlch(48.35, 64.71, 135.46°)
OKLaboklab(53.96% -0.1261 0.1015)
OKLCHoklch(53.96% 0.162 141.1)
XYZxyz(9.4034, 17.0729, 3.8365)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A841B #751B84
analogous
#5E841B #2A841B #1B8440
triadic
#2A841B #1B2A84 #841B2A
tetradic
#2A841B #1B5E84 #751B84 #84401B
square
#2A841B #1B5E84 #751B84 #84401B
split-complementary
#2A841B #401B84 #841B5E
monochromatic
#0A1E06 #1A5111 #2A841B #3AB725 #57D841

Accessibility & contrast

On white

4.76
#2A841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#2A841B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A841B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A841B#FFFFFF#000000##FFFFFF
##2A841B1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#188070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a841b;
/* rgb */ color: rgb(42, 132, 27);
/* oklch */ color: oklch(54.0% 0.162 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a960',
    500: '#2a841b',
    950: '#000000',
  },
}
SCSS
$custom: #2a841b;
$custom-light: #71a960;
$custom-dark: #000000;
JSON
{
  "hex": "#2a841b",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 111.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5396,
    "c": 0.16187,
    "h": 141.1
  },
  "luminance": 0.17074
}

Semantic roles & 50–950 ramp

primary
#2A841B
secondary
#A743B7
accent
#3FE9D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A841B

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

Preview Lab → · Contrast checker → · Palette generator →

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