#2A7A1C#2A7A1C

#2A7A1C is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.149 H 141.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#2A7A1C
RGBrgb(42, 122, 28)
HSLhsl(111, 63%, 29%)
HSVhsv(111, 77%, 48%)
CMYKcmyk(65.6%, 0%, 77%, 52.2%)
CIE-LABlab(44.93, -42.40, 41.66)
CIE-LCHlch(44.93, 59.44, 135.50°)
OKLaboklab(51.13% -0.1159 0.0939)
OKLCHoklch(51.13% 0.149 141)
XYZxyz(8.1236, 14.4944, 3.4680)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A1C #6C1C7A
analogous
#597A1C #2A7A1C #1C7A3D
triadic
#2A7A1C #1C2A7A #7A1C2A
tetradic
#2A7A1C #1C597A #6C1C7A #7A3D1C
square
#2A7A1C #1C597A #6C1C7A #7A3D1C
split-complementary
#2A7A1C #3D1C7A #7A1C59
monochromatic
#091906 #194811 #2A7A1C #3BAC27 #54D33E

Accessibility & contrast

On white

5.39
#2A7A1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2A7A1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A1C
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A1C#FFFFFF#000000##FFFFFF
##2A7A1C1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E09
Deuteranopia (green-blind)
#746826
Tritanopia (blue-blind)
#1D7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a1c;
/* rgb */ color: rgb(42, 122, 28);
/* oklch */ color: oklch(51.1% 0.149 141.0);
Tailwind
colors: {
  custom: {
    50: '#6fa15f',
    500: '#2a7a1c',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a1c;
$custom-light: #6fa15f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a1c",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 28
  },
  "hsl": {
    "h": 111.064,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51131,
    "c": 0.14922,
    "h": 141
  },
  "luminance": 0.14495
}

Semantic roles & 50–950 ramp

primary
#2A7A1C
secondary
#9E44AE
accent
#42E6CD
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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