#2A862B#2A862B

#2A862B is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.154 H 143.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2A862B
RGBrgb(42, 134, 43)
HSLhsl(121, 52%, 35%)
HSVhsv(121, 69%, 53%)
CMYKcmyk(68.7%, 0%, 67.9%, 47.5%)
CIE-LABlab(49.15, -45.44, 39.85)
CIE-LCHlch(49.15, 60.44, 138.75°)
OKLaboklab(54.66% -0.1233 0.0921)
OKLCHoklch(54.66% 0.154 143.3)
XYZxyz(9.9154, 17.7158, 5.1820)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A862B #862A85
analogous
#57862A #2A862B #2A8659
triadic
#2A862B #2B2A86 #862B2A
tetradic
#2A862B #2A5786 #862A85 #86592A
square
#2A862B #2A5786 #862A85 #86592A
split-complementary
#2A862B #592A86 #862A57
monochromatic
#0D290D #1B571C #2A862B #39B53A #5ECD5F

Accessibility & contrast

On white

4.62
#2A862B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#2A862B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A862B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A862B#FFFFFF#000000##FFFFFF
##2A862B1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#89791F
Deuteranopia (green-blind)
#7E7233
Tritanopia (blue-blind)
#138273
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a862b;
/* rgb */ color: rgb(42, 134, 43);
/* oklch */ color: oklch(54.7% 0.154 143.3);
Tailwind
colors: {
  custom: {
    50: '#71aa69',
    500: '#2a862b',
    950: '#000000',
  },
}
SCSS
$custom: #2a862b;
$custom-light: #71aa69;
$custom-dark: #000000;
JSON
{
  "hex": "#2a862b",
  "rgb": {
    "r": 42,
    "g": 134,
    "b": 43
  },
  "hsl": {
    "h": 120.652,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54658,
    "c": 0.15393,
    "h": 143.3
  },
  "luminance": 0.17717
}

Semantic roles & 50–950 ramp

primary
#2A862B
secondary
#B25AB1
accent
#4CDADC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A862B

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

Preview Lab → · Contrast checker → · Palette generator →

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