#2A7C2D#2A7C2D

#2A7C2D is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.139 H 143.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2A7C2D
RGBrgb(42, 124, 45)
HSLhsl(122, 49%, 33%)
HSVhsv(122, 66%, 49%)
CMYKcmyk(66.1%, 0%, 63.7%, 51.4%)
CIE-LABlab(45.77, -41.45, 35.16)
CIE-LCHlch(45.77, 54.35, 139.70°)
OKLaboklab(51.87% -0.1124 0.0823)
OKLCHoklch(51.87% 0.139 143.8)
XYZxyz(8.6356, 15.0961, 4.9409)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C2D #7C2A79
analogous
#507C2A #2A7C2D #2A7C56
triadic
#2A7C2D #2D2A7C #7C2D2A
tetradic
#2A7C2D #2A507C #7C2A79 #7C562A
square
#2A7C2D #2A507C #7C2A79 #7C562A
split-complementary
#2A7C2D #562A7C #7C2A50
monochromatic
#0B210C #1B4E1C #2A7C2D #39AA3E #59C75D

Accessibility & contrast

On white

5.22
#2A7C2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2A7C2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C2D
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C2D#FFFFFF#000000##FFFFFF
##2A7C2D1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7124
Deuteranopia (green-blind)
#746A34
Tritanopia (blue-blind)
#18796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c2d;
/* rgb */ color: rgb(42, 124, 45);
/* oklch */ color: oklch(51.9% 0.139 143.8);
Tailwind
colors: {
  custom: {
    50: '#6ea369',
    500: '#2a7c2d',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c2d;
$custom-light: #6ea369;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c2d",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 45
  },
  "hsl": {
    "h": 122.195,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51866,
    "c": 0.13935,
    "h": 143.8
  },
  "luminance": 0.15097
}

Semantic roles & 50–950 ramp

primary
#2A7C2D
secondary
#AD55A9
accent
#4FD4D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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