#2A7C28#2A7C28

#2A7C28 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.143 H 142.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2A7C28
RGBrgb(42, 124, 40)
HSLhsl(119, 51%, 32%)
HSVhsv(119, 68%, 49%)
CMYKcmyk(66.1%, 0%, 67.7%, 51.4%)
CIE-LABlab(45.72, -42.03, 37.45)
CIE-LCHlch(45.72, 56.29, 138.30°)
OKLaboklab(51.81% -0.1142 0.0867)
OKLCHoklch(51.81% 0.143 142.8)
XYZxyz(8.5450, 15.0599, 4.4636)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C28 #7A287C
analogous
#547C28 #2A7C28 #287C50
triadic
#2A7C28 #282A7C #7C282A
tetradic
#2A7C28 #28547C #7A287C #7C5028
square
#2A7C28 #28547C #7A287C #7C5028
split-complementary
#2A7C28 #50287C #7C2854
monochromatic
#0B1F0A #1A4E19 #2A7C28 #3AAA37 #59C856

Accessibility & contrast

On white

5.23
#2A7C28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2A7C28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C28
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C28#FFFFFF#000000##FFFFFF
##2A7C281.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F701D
Deuteranopia (green-blind)
#756A2F
Tritanopia (blue-blind)
#19786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c28;
/* rgb */ color: rgb(42, 124, 40);
/* oklch */ color: oklch(51.8% 0.143 142.8);
Tailwind
colors: {
  custom: {
    50: '#6fa366',
    500: '#2a7c28',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c28;
$custom-light: #6fa366;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c28",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 40
  },
  "hsl": {
    "h": 118.571,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51809,
    "c": 0.1434,
    "h": 142.8
  },
  "luminance": 0.15061
}

Semantic roles & 50–950 ramp

primary
#2A7C28
secondary
#AB52AD
accent
#4DDBD7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7C28

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

Preview Lab → · Contrast checker → · Palette generator →

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