#2A812E#2A812E

#2A812E is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.3% C 0.145 H 143.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2A812E
RGBrgb(42, 129, 46)
HSLhsl(123, 51%, 34%)
HSVhsv(123, 67%, 51%)
CMYKcmyk(67.4%, 0%, 64.3%, 49.4%)
CIE-LABlab(47.48, -43.24, 36.62)
CIE-LCHlch(47.48, 56.67, 139.74°)
OKLaboklab(53.29% -0.1172 0.0856)
OKLCHoklch(53.29% 0.145 143.9)
XYZxyz(9.2977, 16.3891, 5.2577)
Luminance0.1639 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A812E #812A7D
analogous
#51812A #2A812E #2A8159
triadic
#2A812E #2E2A81 #812E2A
tetradic
#2A812E #2A5181 #812A7D #81592A
square
#2A812E #2A5181 #812A7D #81592A
split-complementary
#2A812E #592A81 #812A51
monochromatic
#0C250D #1B531E #2A812E #39AF3E #5CCA61

Accessibility & contrast

On white

4.91
#2A812E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#2A812E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A812E
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A812E#FFFFFF#000000##FFFFFF
##2A812E1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847525
Deuteranopia (green-blind)
#796E35
Tritanopia (blue-blind)
#157D6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2a812e;
/* rgb */ color: rgb(42, 129, 46);
/* oklch */ color: oklch(53.3% 0.145 143.9);
Tailwind
colors: {
  custom: {
    50: '#6fa66a',
    500: '#2a812e',
    950: '#000000',
  },
}
SCSS
$custom: #2a812e;
$custom-light: #6fa66a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a812e",
  "rgb": {
    "r": 42,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 122.759,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53287,
    "c": 0.14513,
    "h": 143.9
  },
  "luminance": 0.1639
}

Semantic roles & 50–950 ramp

primary
#2A812E
secondary
#AF57AB
accent
#4DD4DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A812E

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

Preview Lab → · Contrast checker → · Palette generator →

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