#2A7E27#2A7E27

#2A7E27 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.147 H 142.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2A7E27
RGBrgb(42, 126, 39)
HSLhsl(118, 53%, 32%)
HSVhsv(118, 69%, 49%)
CMYKcmyk(66.7%, 0%, 69%, 50.6%)
CIE-LABlab(46.39, -42.89, 38.63)
CIE-LCHlch(46.39, 57.72, 137.99°)
OKLaboklab(52.36% -0.1166 0.089)
OKLCHoklch(52.36% 0.147 142.6)
XYZxyz(8.7814, 15.5596, 4.4596)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E27 #7B277E
analogous
#567E27 #2A7E27 #277E50
triadic
#2A7E27 #272A7E #7E272A
tetradic
#2A7E27 #27567E #7B277E #7E5027
square
#2A7E27 #27567E #7B277E #7E5027
split-complementary
#2A7E27 #50277E #7E2756
monochromatic
#0B210A #1A4F19 #2A7E27 #3AAD35 #59CA55

Accessibility & contrast

On white

5.11
#2A7E27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2A7E27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E27
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E27#FFFFFF#000000##FFFFFF
##2A7E271.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721B
Deuteranopia (green-blind)
#776B2F
Tritanopia (blue-blind)
#197A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e27;
/* rgb */ color: rgb(42, 126, 39);
/* oklch */ color: oklch(52.4% 0.147 142.6);
Tailwind
colors: {
  custom: {
    50: '#6fa466',
    500: '#2a7e27',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e27;
$custom-light: #6fa466;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e27",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 39
  },
  "hsl": {
    "h": 117.931,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52364,
    "c": 0.14675,
    "h": 142.6
  },
  "luminance": 0.1556
}

Semantic roles & 50–950 ramp

primary
#2A7E27
secondary
#AC52AF
accent
#4CDCD7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7E27

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

Preview Lab → · Contrast checker → · Palette generator →

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