#2A7F2F#2A7F2F

#2A7F2F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.142 H 144.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2A7F2F
RGBrgb(42, 127, 47)
HSLhsl(124, 50%, 33%)
HSVhsv(124, 67%, 50%)
CMYKcmyk(66.9%, 0%, 63%, 50.2%)
CIE-LABlab(46.81, -42.36, 35.38)
CIE-LCHlch(46.81, 55.19, 140.13°)
OKLaboklab(52.74% -0.1148 0.083)
OKLCHoklch(52.74% 0.142 144.1)
XYZxyz(9.0568, 15.8753, 5.2757)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F2F #7F2A7A
analogous
#4F7F2A #2A7F2F #2A7F59
triadic
#2A7F2F #2F2A7F #7F2F2A
tetradic
#2A7F2F #2A4F7F #7F2A7A #7F592A
square
#2A7F2F #2A4F7F #7F2A7A #7F592A
split-complementary
#2A7F2F #592A7F #7F2A4F
monochromatic
#0C230D #1B511E #2A7F2F #39AD40 #5BC961

Accessibility & contrast

On white

5.03
#2A7F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2A7F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F2F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F2F#FFFFFF#000000##FFFFFF
##2A7F2F1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817326
Deuteranopia (green-blind)
#776C36
Tritanopia (blue-blind)
#157C6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f2f;
/* rgb */ color: rgb(42, 127, 47);
/* oklch */ color: oklch(52.7% 0.142 144.1);
Tailwind
colors: {
  custom: {
    50: '#6fa56b',
    500: '#2a7f2f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f2f;
$custom-light: #6fa56b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f2f",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 123.529,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52736,
    "c": 0.14166,
    "h": 144.1
  },
  "luminance": 0.15876
}

Semantic roles & 50–950 ramp

primary
#2A7F2F
secondary
#AE57A9
accent
#4ED2DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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