#2A7A30#2A7A30

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

Color values

HEX#2A7A30
RGBrgb(42, 122, 48)
HSLhsl(125, 49%, 32%)
HSVhsv(125, 66%, 48%)
CMYKcmyk(65.6%, 0%, 60.7%, 52.2%)
CIE-LABlab(45.11, -40.29, 32.93)
CIE-LCHlch(45.11, 52.04, 140.74°)
OKLaboklab(51.34% -0.1091 0.0778)
OKLCHoklch(51.34% 0.134 144.5)
XYZxyz(8.4474, 14.6239, 5.1733)
Luminance0.1462 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A30 #7A2A74
analogous
#4C7A2A #2A7A30 #2A7A58
triadic
#2A7A30 #302A7A #7A302A
tetradic
#2A7A30 #2A4C7A #7A2A74 #7A582A
square
#2A7A30 #2A4C7A #7A2A74 #7A582A
split-complementary
#2A7A30 #582A7A #7A2A4C
monochromatic
#0B1F0C #1A4C1E #2A7A30 #3AA842 #59C661

Accessibility & contrast

On white

5.35
#2A7A30 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7A30
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A30#FFFFFF#000000##FFFFFF
##2A7A301.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F28
Deuteranopia (green-blind)
#726836
Tritanopia (blue-blind)
#18776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a30;
/* rgb */ color: rgb(42, 122, 48);
/* oklch */ color: oklch(51.3% 0.134 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ea16b',
    500: '#2a7a30',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a30;
$custom-light: #6ea16b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a30",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 48
  },
  "hsl": {
    "h": 124.5,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51338,
    "c": 0.13406,
    "h": 144.5
  },
  "luminance": 0.14625
}

Semantic roles & 50–950 ramp

primary
#2A7A30
secondary
#AB55A5
accent
#4FCED8
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7A30

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

Preview Lab → · Contrast checker → · Palette generator →

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