#2A7C1C#2A7C1C

#2A7C1C is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.152 H 141.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2A7C1C
RGBrgb(42, 124, 28)
HSLhsl(111, 63%, 30%)
HSVhsv(111, 77%, 49%)
CMYKcmyk(66.1%, 0%, 77.4%, 51.4%)
CIE-LABlab(45.62, -43.14, 42.35)
CIE-LCHlch(45.62, 60.45, 135.53°)
OKLaboklab(51.7% -0.118 0.0954)
OKLCHoklch(51.7% 0.152 141.1)
XYZxyz(8.3717, 14.9906, 3.5507)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C1C #6E1C7C
analogous
#5A7C1C #2A7C1C #1C7C3E
triadic
#2A7C1C #1C2A7C #7C1C2A
tetradic
#2A7C1C #1C5A7C #6E1C7C #7C3E1C
square
#2A7C1C #1C5A7C #6E1C7C #7C3E1C
split-complementary
#2A7C1C #3E1C7C #7C1C5A
monochromatic
#081906 #194A11 #2A7C1C #3BAE27 #55D43F

Accessibility & contrast

On white

5.25
#2A7C1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2A7C1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C1C
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C1C#FFFFFF#000000##FFFFFF
##2A7C1C1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7008
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#1C786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c1c;
/* rgb */ color: rgb(42, 124, 28);
/* oklch */ color: oklch(51.7% 0.152 141.1);
Tailwind
colors: {
  custom: {
    50: '#6fa35f',
    500: '#2a7c1c',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c1c;
$custom-light: #6fa35f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c1c",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 28
  },
  "hsl": {
    "h": 111.25,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.517,
    "c": 0.15168,
    "h": 141.1
  },
  "luminance": 0.14991
}

Semantic roles & 50–950 ramp

primary
#2A7C1C
secondary
#A044B0
accent
#42E6CE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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