#2A7A2D#2A7A2D

#2A7A2D is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.137 H 143.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2A7A2D
RGBrgb(42, 122, 45)
HSLhsl(122, 49%, 32%)
HSVhsv(122, 66%, 48%)
CMYKcmyk(65.6%, 0%, 63.1%, 52.2%)
CIE-LABlab(45.08, -40.68, 34.38)
CIE-LCHlch(45.08, 53.26, 139.80°)
OKLaboklab(51.3% -0.1103 0.0807)
OKLCHoklch(51.3% 0.137 143.8)
XYZxyz(8.3875, 14.5999, 4.8582)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A2D #7A2A77
analogous
#4F7A2A #2A7A2D #2A7A55
triadic
#2A7A2D #2D2A7A #7A2D2A
tetradic
#2A7A2D #2A4F7A #7A2A77 #7A552A
square
#2A7A2D #2A4F7A #7A2A77 #7A552A
split-complementary
#2A7A2D #552A7A #7A2A4F
monochromatic
#0B1F0B #1A4C1C #2A7A2D #3AA83E #59C65D

Accessibility & contrast

On white

5.36
#2A7A2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2A7A2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A2D
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A2D#FFFFFF#000000##FFFFFF
##2A7A2D1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F25
Deuteranopia (green-blind)
#736833
Tritanopia (blue-blind)
#197769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a2d;
/* rgb */ color: rgb(42, 122, 45);
/* oklch */ color: oklch(51.3% 0.137 143.8);
Tailwind
colors: {
  custom: {
    50: '#6ea169',
    500: '#2a7a2d',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a2d;
$custom-light: #6ea169;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a2d",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 122.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.513,
    "c": 0.13667,
    "h": 143.8
  },
  "luminance": 0.14601
}

Semantic roles & 50–950 ramp

primary
#2A7A2D
secondary
#AB55A8
accent
#4FD3D8
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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