#2A841C#2A841C

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

Color values

HEX#2A841C
RGBrgb(42, 132, 28)
HSLhsl(112, 65%, 31%)
HSVhsv(112, 79%, 52%)
CMYKcmyk(68.2%, 0%, 78.8%, 48.2%)
CIE-LABlab(48.36, -46.05, 45.04)
CIE-LCHlch(48.36, 64.42, 135.64°)
OKLaboklab(53.97% -0.1258 0.101)
OKLCHoklch(53.97% 0.161 141.3)
XYZxyz(9.4152, 17.0776, 3.8985)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A841C #761C84
analogous
#5E841C #2A841C #1C8442
triadic
#2A841C #1C2A84 #841C2A
tetradic
#2A841C #1C5E84 #761C84 #84421C
square
#2A841C #1C5E84 #761C84 #84421C
split-complementary
#2A841C #421C84 #841C5E
monochromatic
#0A1F07 #1A5211 #2A841C #3AB627 #57D743

Accessibility & contrast

On white

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

On black

4.42
#2A841C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A841C#FFFFFF#000000##FFFFFF
##2A841C1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a841c;
/* rgb */ color: rgb(42, 132, 28);
/* oklch */ color: oklch(54.0% 0.161 141.3);
Tailwind
colors: {
  custom: {
    50: '#71a961',
    500: '#2a841c',
    950: '#000000',
  },
}
SCSS
$custom: #2a841c;
$custom-light: #71a961;
$custom-dark: #000000;
JSON
{
  "hex": "#2a841c",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 111.923,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53967,
    "c": 0.16132,
    "h": 141.3
  },
  "luminance": 0.17079
}

Semantic roles & 50–950 ramp

primary
#2A841C
secondary
#A845B7
accent
#40E8D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A841C

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

Preview Lab → · Contrast checker → · Palette generator →

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