#2A7C40#2A7C40

#2A7C40 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.122 H 149.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2A7C40
RGBrgb(42, 124, 64)
HSLhsl(136, 49%, 33%)
HSVhsv(136, 66%, 49%)
CMYKcmyk(66.1%, 0%, 48.4%, 51.4%)
CIE-LABlab(46.01, -38.66, 25.60)
CIE-LCHlch(46.01, 46.36, 146.49°)
OKLaboklab(52.15% -0.1043 0.0626)
OKLCHoklch(52.15% 0.122 149)
XYZxyz(9.0872, 15.2768, 7.3193)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C40 #7C2A66
analogous
#3D7C2A #2A7C40 #2A7C69
triadic
#2A7C40 #402A7C #7C402A
tetradic
#2A7C40 #2A3D7C #7C2A66 #7C692A
square
#2A7C40 #2A3D7C #7C2A66 #7C692A
split-complementary
#2A7C40 #692A7C #7C2A3D
monochromatic
#0B2111 #1B4E28 #2A7C40 #39AA58 #59C777

Accessibility & contrast

On white

5.18
#2A7C40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2A7C40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C40
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C40#FFFFFF#000000##FFFFFF
##2A7C401.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D713B
Deuteranopia (green-blind)
#736A44
Tritanopia (blue-blind)
#0E7A6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7c40;
/* rgb */ color: rgb(42, 124, 64);
/* oklch */ color: oklch(52.1% 0.122 149.0);
Tailwind
colors: {
  custom: {
    50: '#6ea376',
    500: '#2a7c40',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c40;
$custom-light: #6ea376;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c40",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 64
  },
  "hsl": {
    "h": 136.098,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52148,
    "c": 0.12165,
    "h": 149
  },
  "luminance": 0.15278
}

Semantic roles & 50–950 ramp

primary
#2A7C40
secondary
#AD5595
accent
#4FB4D9
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #2A7C40

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

Preview Lab → · Contrast checker → · Palette generator →

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