#2A7843#2A7843

#2A7843 is a mid, moderate green. Relative luminance 0.143; OKLCH L 51.1% C 0.113 H 150.8°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2A7843
RGBrgb(42, 120, 67)
HSLhsl(139, 48%, 32%)
HSVhsv(139, 65%, 47%)
CMYKcmyk(65%, 0%, 44.2%, 52.9%)
CIE-LABlab(44.70, -36.45, 22.25)
CIE-LCHlch(44.70, 42.70, 148.60°)
OKLaboklab(51.09% -0.0985 0.055)
OKLCHoklch(51.09% 0.113 150.8)
XYZxyz(8.6838, 14.3296, 7.6174)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7843 #782A5F
analogous
#38782A #2A7843 #2A786A
triadic
#2A7843 #432A78 #78432A
tetradic
#2A7843 #2A3878 #782A5F #786A2A
square
#2A7843 #2A3878 #782A5F #786A2A
split-complementary
#2A7843 #6A2A78 #782A38
monochromatic
#0A1D10 #1A4B2A #2A7843 #3AA55C #58C57B

Accessibility & contrast

On white

5.43
#2A7843 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2A7843 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7843
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7843#FFFFFF#000000##FFFFFF
##2A78431.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3F
Deuteranopia (green-blind)
#6E6747
Tritanopia (blue-blind)
#0F766B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7843;
/* rgb */ color: rgb(42, 120, 67);
/* oklch */ color: oklch(51.1% 0.113 150.8);
Tailwind
colors: {
  custom: {
    50: '#6da078',
    500: '#2a7843',
    950: '#000000',
  },
}
SCSS
$custom: #2a7843;
$custom-light: #6da078;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7843",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 67
  },
  "hsl": {
    "h": 139.231,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51086,
    "c": 0.11278,
    "h": 150.8
  },
  "luminance": 0.1433
}

Semantic roles & 50–950 ramp

primary
#2A7843
secondary
#AA548E
accent
#50ACD8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F09
muted
#7A7E7B

Preview Lab

Preview with #2A7843

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

Preview Lab → · Contrast checker → · Palette generator →

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