#2A7E28#2A7E28

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

Color values

HEX#2A7E28
RGBrgb(42, 126, 40)
HSLhsl(119, 52%, 33%)
HSVhsv(119, 68%, 49%)
CMYKcmyk(66.7%, 0%, 68.3%, 50.6%)
CIE-LABlab(46.40, -42.79, 38.19)
CIE-LCHlch(46.40, 57.35, 138.25°)
OKLaboklab(52.38% -0.1163 0.0882)
OKLCHoklch(52.38% 0.146 142.8)
XYZxyz(8.7982, 15.5663, 4.5480)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E28 #7C287E
analogous
#557E28 #2A7E28 #287E51
triadic
#2A7E28 #282A7E #7E282A
tetradic
#2A7E28 #28557E #7C287E #7E5128
square
#2A7E28 #28557E #7C287E #7E5128
split-complementary
#2A7E28 #51287E #7E2855
monochromatic
#0B210B #1B5019 #2A7E28 #39AC37 #59CA57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7E28#FFFFFF#000000##FFFFFF
##2A7E281.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)
#81721D
Deuteranopia (green-blind)
#776B30
Tritanopia (blue-blind)
#187A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e28;
/* rgb */ color: rgb(42, 126, 40);
/* oklch */ color: oklch(52.4% 0.146 142.8);
Tailwind
colors: {
  custom: {
    50: '#6fa466',
    500: '#2a7e28',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e28;
$custom-light: #6fa466;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e28",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 118.605,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52375,
    "c": 0.14599,
    "h": 142.8
  },
  "luminance": 0.15567
}

Semantic roles & 50–950 ramp

primary
#2A7E28
secondary
#AD53AF
accent
#4DDBD8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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