#2A7F4F#2A7F4F

#2A7F4F is a mid, moderate green. Relative luminance 0.162; OKLCH L 53.3% C 0.111 H 154.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2A7F4F
RGBrgb(42, 127, 79)
HSLhsl(146, 50%, 33%)
HSVhsv(146, 67%, 50%)
CMYKcmyk(66.9%, 0%, 37.8%, 50.2%)
CIE-LABlab(47.28, -37.08, 18.86)
CIE-LCHlch(47.28, 41.60, 153.04°)
OKLaboklab(53.28% -0.1004 0.0473)
OKLCHoklch(53.28% 0.111 154.8)
XYZxyz(9.9546, 16.2345, 10.0046)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F4F #7F2A5A
analogous
#2F7F2A #2A7F4F #2A7F79
triadic
#2A7F4F #4F2A7F #7F4F2A
tetradic
#2A7F4F #2A2F7F #7F2A5A #7F792A
square
#2A7F4F #2A2F7F #7F2A5A #7F792A
split-complementary
#2A7F4F #792A7F #7F2A2F
monochromatic
#0C2316 #1B5132 #2A7F4F #39AD6C #5BC98B

Accessibility & contrast

On white

4.94
#2A7F4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#2A7F4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F4F
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F4F#FFFFFF#000000##FFFFFF
##2A7F4F1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F754C
Deuteranopia (green-blind)
#746D52
Tritanopia (blue-blind)
#007E73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a7f4f;
/* rgb */ color: rgb(42, 127, 79);
/* oklch */ color: oklch(53.3% 0.111 154.8);
Tailwind
colors: {
  custom: {
    50: '#6ea580',
    500: '#2a7f4f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f4f;
$custom-light: #6ea580;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f4f",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 79
  },
  "hsl": {
    "h": 146.118,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53277,
    "c": 0.11098,
    "h": 154.8
  },
  "luminance": 0.16235
}

Semantic roles & 50–950 ramp

primary
#2A7F4F
secondary
#AE5788
accent
#4E9DDA
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #2A7F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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