#2A7F4E#2A7F4E

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

Color values

HEX#2A7F4E
RGBrgb(42, 127, 78)
HSLhsl(145, 50%, 33%)
HSVhsv(145, 67%, 50%)
CMYKcmyk(66.9%, 0%, 38.6%, 50.2%)
CIE-LABlab(47.26, -37.28, 19.40)
CIE-LCHlch(47.26, 42.03, 152.51°)
OKLaboklab(53.26% -0.1009 0.0485)
OKLCHoklch(53.26% 0.112 154.3)
XYZxyz(9.9185, 16.2200, 9.8143)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F4E #7F2A5B
analogous
#307F2A #2A7F4E #2A7F78
triadic
#2A7F4E #4E2A7F #7F4E2A
tetradic
#2A7F4E #2A307F #7F2A5B #7F782A
square
#2A7F4E #2A307F #7F2A5B #7F782A
split-complementary
#2A7F4E #782A7F #7F2A30
monochromatic
#0C2316 #1B5132 #2A7F4E #39AD6A #5BC989

Accessibility & contrast

On white

4.95
#2A7F4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#2A7F4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F4E
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F4E#FFFFFF#000000##FFFFFF
##2A7F4E1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a7f4e;
/* rgb */ color: rgb(42, 127, 78);
/* oklch */ color: oklch(53.3% 0.112 154.3);
Tailwind
colors: {
  custom: {
    50: '#6ea580',
    500: '#2a7f4e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f4e;
$custom-light: #6ea580;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f4e",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 78
  },
  "hsl": {
    "h": 145.412,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53255,
    "c": 0.11197,
    "h": 154.3
  },
  "luminance": 0.16221
}

Semantic roles & 50–950 ramp

primary
#2A7F4E
secondary
#AE5789
accent
#4E9FDA
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #2A7F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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