#2A862C#2A862C

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

Color values

HEX#2A862C
RGBrgb(42, 134, 44)
HSLhsl(121, 52%, 35%)
HSVhsv(121, 69%, 53%)
CMYKcmyk(68.7%, 0%, 67.2%, 47.5%)
CIE-LABlab(49.16, -45.33, 39.41)
CIE-LCHlch(49.16, 60.07, 139.00°)
OKLaboklab(54.67% -0.123 0.0913)
OKLCHoklch(54.67% 0.153 143.4)
XYZxyz(9.9340, 17.7233, 5.2798)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A862C #862A84
analogous
#56862A #2A862C #2A865A
triadic
#2A862C #2C2A86 #862C2A
tetradic
#2A862C #2A5686 #862A84 #865A2A
square
#2A862C #2A5686 #862A84 #865A2A
split-complementary
#2A862C #5A2A86 #862A56
monochromatic
#0D290D #1B571D #2A862C #39B53B #5ECD60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A862C#FFFFFF#000000##FFFFFF
##2A862C1.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)
#897921
Deuteranopia (green-blind)
#7E7234
Tritanopia (blue-blind)
#128273
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a862c;
/* rgb */ color: rgb(42, 134, 44);
/* oklch */ color: oklch(54.7% 0.153 143.4);
Tailwind
colors: {
  custom: {
    50: '#71aa69',
    500: '#2a862c',
    950: '#000000',
  },
}
SCSS
$custom: #2a862c;
$custom-light: #71aa69;
$custom-dark: #000000;
JSON
{
  "hex": "#2a862c",
  "rgb": {
    "r": 42,
    "g": 134,
    "b": 44
  },
  "hsl": {
    "h": 121.304,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54669,
    "c": 0.15317,
    "h": 143.4
  },
  "luminance": 0.17724
}

Semantic roles & 50–950 ramp

primary
#2A862C
secondary
#B25AB0
accent
#4CD9DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2A862C

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

Preview Lab → · Contrast checker → · Palette generator →

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