#2A7B4E#2A7B4E

#2A7B4E is a mid, moderate green. Relative luminance 0.152; OKLCH L 52.1% C 0.106 H 155.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2A7B4E
RGBrgb(42, 123, 78)
HSLhsl(147, 49%, 32%)
HSVhsv(147, 66%, 48%)
CMYKcmyk(65.9%, 0%, 36.6%, 51.8%)
CIE-LABlab(45.92, -35.56, 17.60)
CIE-LCHlch(45.92, 39.67, 153.67°)
OKLaboklab(52.15% -0.0964 0.0442)
OKLCHoklch(52.15% 0.106 155.4)
XYZxyz(9.4121, 15.2072, 9.6455)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B4E #7B2A57
analogous
#2E7B2A #2A7B4E #2A7B77
triadic
#2A7B4E #4E2A7B #7B4E2A
tetradic
#2A7B4E #2A2E7B #7B2A57 #7B772A
square
#2A7B4E #2A2E7B #7B2A57 #7B772A
split-complementary
#2A7B4E #772A7B #7B2A2E
monochromatic
#0B2014 #1A4D31 #2A7B4E #3AA96B #59C68A

Accessibility & contrast

On white

5.20
#2A7B4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2A7B4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B4E
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B4E#FFFFFF#000000##FFFFFF
##2A7B4E1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B714B
Deuteranopia (green-blind)
#706A51
Tritanopia (blue-blind)
#017A6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7b4e;
/* rgb */ color: rgb(42, 123, 78);
/* oklch */ color: oklch(52.1% 0.106 155.4);
Tailwind
colors: {
  custom: {
    50: '#6da280',
    500: '#2a7b4e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b4e;
$custom-light: #6da280;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b4e",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 78
  },
  "hsl": {
    "h": 146.667,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5215,
    "c": 0.10609,
    "h": 155.4
  },
  "luminance": 0.15208
}

Semantic roles & 50–950 ramp

primary
#2A7B4E
secondary
#AC5585
accent
#4F9CD9
background
#F6FAF7
surface
#ECF3EE
border
#C7CDC9
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #2A7B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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