#2A7D2E#2A7D2E

#2A7D2E is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.140 H 144.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2A7D2E
RGBrgb(42, 125, 46)
HSLhsl(123, 50%, 33%)
HSVhsv(123, 66%, 49%)
CMYKcmyk(66.4%, 0%, 63.2%, 51%)
CIE-LABlab(46.12, -41.71, 35.07)
CIE-LCHlch(46.12, 54.50, 139.94°)
OKLaboklab(52.16% -0.1131 0.0823)
OKLCHoklch(52.16% 0.14 144)
XYZxyz(8.7811, 15.3558, 5.0855)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D2E #7D2A79
analogous
#4F7D2A #2A7D2E #2A7D58
triadic
#2A7D2E #2E2A7D #7D2E2A
tetradic
#2A7D2E #2A4F7D #7D2A79 #7D582A
square
#2A7D2E #2A4F7D #7D2A79 #7D582A
split-complementary
#2A7D2E #582A7D #7D2A4F
monochromatic
#0B210C #1B4F1D #2A7D2E #39AB3F #5AC85F

Accessibility & contrast

On white

5.16
#2A7D2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2A7D2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D2E
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D2E#FFFFFF#000000##FFFFFF
##2A7D2E1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7125
Deuteranopia (green-blind)
#756B35
Tritanopia (blue-blind)
#177A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d2e;
/* rgb */ color: rgb(42, 125, 46);
/* oklch */ color: oklch(52.2% 0.140 144.0);
Tailwind
colors: {
  custom: {
    50: '#6fa36a',
    500: '#2a7d2e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d2e;
$custom-light: #6fa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d2e",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 122.892,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5216,
    "c": 0.13985,
    "h": 144
  },
  "luminance": 0.15357
}

Semantic roles & 50–950 ramp

primary
#2A7D2E
secondary
#AD56A9
accent
#4FD3D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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