#2A7C1B#2A7C1B

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

Color values

HEX#2A7C1B
RGBrgb(42, 124, 27)
HSLhsl(111, 64%, 30%)
HSVhsv(111, 78%, 49%)
CMYKcmyk(66.1%, 0%, 78.2%, 51.4%)
CIE-LABlab(45.61, -43.22, 42.71)
CIE-LCHlch(45.61, 60.76, 135.34°)
OKLaboklab(51.69% -0.1182 0.096)
OKLCHoklch(51.69% 0.152 140.9)
XYZxyz(8.3599, 14.9859, 3.4887)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C1B #6D1B7C
analogous
#5A7C1B #2A7C1B #1B7C3D
triadic
#2A7C1B #1B2A7C #7C1B2A
tetradic
#2A7C1B #1B5A7C #6D1B7C #7C3D1B
square
#2A7C1B #1B5A7C #6D1B7C #7C3D1B
split-complementary
#2A7C1B #3D1B7C #7C1B5A
monochromatic
#091905 #194A10 #2A7C1B #3BAE26 #54D53D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7C1B#FFFFFF#000000##FFFFFF
##2A7C1B1.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)
#7F7006
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#1C786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c1b;
/* rgb */ color: rgb(42, 124, 27);
/* oklch */ color: oklch(51.7% 0.152 140.9);
Tailwind
colors: {
  custom: {
    50: '#6fa35f',
    500: '#2a7c1b',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c1b;
$custom-light: #6fa35f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c1b",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 110.722,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51692,
    "c": 0.15226,
    "h": 140.9
  },
  "luminance": 0.14987
}

Semantic roles & 50–950 ramp

primary
#2A7C1B
secondary
#9F43B0
accent
#41E7CD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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