#2A7E4F#2A7E4F

#2A7E4F is a mid, moderate green. Relative luminance 0.160; OKLCH L 53.0% C 0.110 H 155.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#2A7E4F
RGBrgb(42, 126, 79)
HSLhsl(146, 50%, 33%)
HSVhsv(146, 67%, 49%)
CMYKcmyk(66.7%, 0%, 37.3%, 50.6%)
CIE-LABlab(46.94, -36.65, 18.41)
CIE-LCHlch(46.94, 41.01, 153.33°)
OKLaboklab(53% -0.0993 0.0462)
OKLCHoklch(53% 0.11 155.1)
XYZxyz(9.8261, 15.9774, 9.9617)
Luminance0.1598 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E4F #7E2A59
analogous
#2F7E2A #2A7E4F #2A7E79
triadic
#2A7E4F #4F2A7E #7E4F2A
tetradic
#2A7E4F #2A2F7E #7E2A59 #7E792A
square
#2A7E4F #2A2F7E #7E2A59 #7E792A
split-complementary
#2A7E4F #792A7E #7E2A2F
monochromatic
#0B2215 #1B5032 #2A7E4F #39AC6C #5AC88B

Accessibility & contrast

On white

5.01
#2A7E4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#2A7E4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E4F
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E4F#FFFFFF#000000##FFFFFF
##2A7E4F1.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E744C
Deuteranopia (green-blind)
#736C52
Tritanopia (blue-blind)
#007D72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7e4f;
/* rgb */ color: rgb(42, 126, 79);
/* oklch */ color: oklch(53.0% 0.110 155.1);
Tailwind
colors: {
  custom: {
    50: '#6ea480',
    500: '#2a7e4f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e4f;
$custom-light: #6ea480;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e4f",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 79
  },
  "hsl": {
    "h": 146.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53001,
    "c": 0.1095,
    "h": 155.1
  },
  "luminance": 0.15978
}

Semantic roles & 50–950 ramp

primary
#2A7E4F
secondary
#AE5687
accent
#4E9CDA
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #2A7E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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