#2A812F#2A812F

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

Color values

HEX#2A812F
RGBrgb(42, 129, 47)
HSLhsl(123, 51%, 34%)
HSVhsv(123, 67%, 51%)
CMYKcmyk(67.4%, 0%, 63.6%, 49.4%)
CIE-LABlab(47.49, -43.12, 36.16)
CIE-LCHlch(47.49, 56.27, 140.02°)
OKLaboklab(53.3% -0.1169 0.0847)
OKLCHoklch(53.3% 0.144 144.1)
XYZxyz(9.3176, 16.3970, 5.3627)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A812F #812A7C
analogous
#50812A #2A812F #2A815A
triadic
#2A812F #2F2A81 #812F2A
tetradic
#2A812F #2A5081 #812A7C #815A2A
square
#2A812F #2A5081 #812A7C #815A2A
split-complementary
#2A812F #5A2A81 #812A50
monochromatic
#0C250D #1B531E #2A812F #39AF40 #5CCA62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A812F#FFFFFF#000000##FFFFFF
##2A812F1.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)
#837526
Deuteranopia (green-blind)
#796E36
Tritanopia (blue-blind)
#147D70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2a812f;
/* rgb */ color: rgb(42, 129, 47);
/* oklch */ color: oklch(53.3% 0.144 144.1);
Tailwind
colors: {
  custom: {
    50: '#6fa66b',
    500: '#2a812f',
    950: '#000000',
  },
}
SCSS
$custom: #2a812f;
$custom-light: #6fa66b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a812f",
  "rgb": {
    "r": 42,
    "g": 129,
    "b": 47
  },
  "hsl": {
    "h": 123.448,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53299,
    "c": 0.14431,
    "h": 144.1
  },
  "luminance": 0.16398
}

Semantic roles & 50–950 ramp

primary
#2A812F
secondary
#AF57AA
accent
#4DD2DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A812F

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

Preview Lab → · Contrast checker → · Palette generator →

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