#2A7A33#2A7A33

#2A7A33 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.131 H 145.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2A7A33
RGBrgb(42, 122, 51)
HSLhsl(127, 49%, 32%)
HSVhsv(127, 66%, 48%)
CMYKcmyk(65.6%, 0%, 58.2%, 52.2%)
CIE-LABlab(45.15, -39.88, 31.45)
CIE-LCHlch(45.15, 50.79, 141.74°)
OKLaboklab(51.38% -0.1079 0.0749)
OKLCHoklch(51.38% 0.131 145.3)
XYZxyz(8.5114, 14.6495, 5.5104)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A33 #7A2A71
analogous
#497A2A #2A7A33 #2A7A5B
triadic
#2A7A33 #332A7A #7A332A
tetradic
#2A7A33 #2A497A #7A2A71 #7A5B2A
square
#2A7A33 #2A497A #7A2A71 #7A5B2A
split-complementary
#2A7A33 #5B2A7A #7A2A49
monochromatic
#0B1F0D #1A4C20 #2A7A33 #3AA846 #59C665

Accessibility & contrast

On white

5.34
#2A7A33 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2A7A33 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A33
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A33#FFFFFF#000000##FFFFFF
##2A7A331.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F2C
Deuteranopia (green-blind)
#726838
Tritanopia (blue-blind)
#16776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a33;
/* rgb */ color: rgb(42, 122, 51);
/* oklch */ color: oklch(51.4% 0.131 145.3);
Tailwind
colors: {
  custom: {
    50: '#6ea16d',
    500: '#2a7a33',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a33;
$custom-light: #6ea16d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a33",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 51
  },
  "hsl": {
    "h": 126.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51379,
    "c": 0.13134,
    "h": 145.3
  },
  "luminance": 0.1465
}

Semantic roles & 50–950 ramp

primary
#2A7A33
secondary
#AB55A2
accent
#4FC9D8
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #2A7A33

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

Preview Lab → · Contrast checker → · Palette generator →

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