#2A7D38#2A7D38

#2A7D38 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.3% C 0.131 H 146.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#2A7D38
RGBrgb(42, 125, 56)
HSLhsl(130, 50%, 33%)
HSVhsv(130, 66%, 49%)
CMYKcmyk(66.4%, 0%, 55.2%, 51%)
CIE-LABlab(46.24, -40.35, 30.17)
CIE-LCHlch(46.24, 50.38, 143.22°)
OKLaboklab(52.3% -0.109 0.0724)
OKLCHoklch(52.3% 0.131 146.4)
XYZxyz(9.0017, 15.4441, 6.2472)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D38 #7D2A6F
analogous
#467D2A #2A7D38 #2A7D61
triadic
#2A7D38 #382A7D #7D382A
tetradic
#2A7D38 #2A467D #7D2A6F #7D612A
square
#2A7D38 #2A467D #7D2A6F #7D612A
split-complementary
#2A7D38 #612A7D #7D2A46
monochromatic
#0B210F #1B4F23 #2A7D38 #39AB4D #5AC86C

Accessibility & contrast

On white

5.14
#2A7D38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#2A7D38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D38
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D38#FFFFFF#000000##FFFFFF
##2A7D381.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7232
Deuteranopia (green-blind)
#746B3D
Tritanopia (blue-blind)
#127A6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7d38;
/* rgb */ color: rgb(42, 125, 56);
/* oklch */ color: oklch(52.3% 0.131 146.4);
Tailwind
colors: {
  custom: {
    50: '#6ea370',
    500: '#2a7d38',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d38;
$custom-light: #6ea370;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d38",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 56
  },
  "hsl": {
    "h": 130.12,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52297,
    "c": 0.13086,
    "h": 146.4
  },
  "luminance": 0.15445
}

Semantic roles & 50–950 ramp

primary
#2A7D38
secondary
#AD569E
accent
#4FC2D9
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7D38

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

Preview Lab → · Contrast checker → · Palette generator →

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