#2A7834#2A7834

#2A7834 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.128 H 145.6°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#2A7834
RGBrgb(42, 120, 52)
HSLhsl(128, 48%, 32%)
HSVhsv(128, 65%, 47%)
CMYKcmyk(65%, 0%, 56.7%, 52.9%)
CIE-LABlab(44.48, -38.94, 30.13)
CIE-LCHlch(44.48, 49.24, 142.27°)
OKLaboklab(50.83% -0.1053 0.0721)
OKLCHoklch(50.83% 0.128 145.6)
XYZxyz(8.2906, 14.1723, 5.5468)
Luminance0.1417 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7834 #782A6E
analogous
#47782A #2A7834 #2A785B
triadic
#2A7834 #342A78 #78342A
tetradic
#2A7834 #2A4778 #782A6E #785B2A
square
#2A7834 #2A4778 #782A6E #785B2A
split-complementary
#2A7834 #5B2A78 #782A47
monochromatic
#0A1D0D #1A4B20 #2A7834 #3AA548 #58C566

Accessibility & contrast

On white

5.48
#2A7834 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#2A7834 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7834
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7834#FFFFFF#000000##FFFFFF
##2A78341.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D2E
Deuteranopia (green-blind)
#706739
Tritanopia (blue-blind)
#177569
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7834;
/* rgb */ color: rgb(42, 120, 52);
/* oklch */ color: oklch(50.8% 0.128 145.6);
Tailwind
colors: {
  custom: {
    50: '#6da06d',
    500: '#2a7834',
    950: '#000000',
  },
}
SCSS
$custom: #2a7834;
$custom-light: #6da06d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7834",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 52
  },
  "hsl": {
    "h": 127.692,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5083,
    "c": 0.12762,
    "h": 145.6
  },
  "luminance": 0.14173
}

Semantic roles & 50–950 ramp

primary
#2A7834
secondary
#AA549F
accent
#50C6D8
background
#F6F9F6
surface
#ECF2EC
border
#C7CCC7
text
#080F07
muted
#7B7E7A

Preview Lab

Preview with #2A7834

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

Preview Lab → · Contrast checker → · Palette generator →

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