#2A7D2F#2A7D2F

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

Color values

HEX#2A7D2F
RGBrgb(42, 125, 47)
HSLhsl(124, 50%, 33%)
HSVhsv(124, 66%, 49%)
CMYKcmyk(66.4%, 0%, 62.4%, 51%)
CIE-LABlab(46.13, -41.59, 34.60)
CIE-LCHlch(46.13, 54.10, 140.24°)
OKLaboklab(52.17% -0.1127 0.0813)
OKLCHoklch(52.17% 0.139 144.2)
XYZxyz(8.8010, 15.3638, 5.1905)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D2F #7D2A78
analogous
#4F7D2A #2A7D2F #2A7D58
triadic
#2A7D2F #2F2A7D #7D2F2A
tetradic
#2A7D2F #2A4F7D #7D2A78 #7D582A
square
#2A7D2F #2A4F7D #7D2A78 #7D582A
split-complementary
#2A7D2F #582A7D #7D2A4F
monochromatic
#0B210D #1B4F1E #2A7D2F #39AB40 #5AC860

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7D2F#FFFFFF#000000##FFFFFF
##2A7D2F1.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)
#7F7227
Deuteranopia (green-blind)
#756B35
Tritanopia (blue-blind)
#167A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d2f;
/* rgb */ color: rgb(42, 125, 47);
/* oklch */ color: oklch(52.2% 0.139 144.2);
Tailwind
colors: {
  custom: {
    50: '#6fa36a',
    500: '#2a7d2f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d2f;
$custom-light: #6fa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d2f",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 123.614,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52172,
    "c": 0.13899,
    "h": 144.2
  },
  "luminance": 0.15365
}

Semantic roles & 50–950 ramp

primary
#2A7D2F
secondary
#AD56A8
accent
#4FD1D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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