#2A7F1E#2A7F1E

#2A7F1E is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.154 H 141.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2A7F1E
RGBrgb(42, 127, 30)
HSLhsl(113, 62%, 31%)
HSVhsv(113, 76%, 50%)
CMYKcmyk(66.9%, 0%, 76.4%, 50.2%)
CIE-LABlab(46.66, -44.09, 42.63)
CIE-LCHlch(46.66, 61.33, 135.96°)
OKLaboklab(52.57% -0.1204 0.0962)
OKLCHoklch(52.57% 0.154 141.4)
XYZxyz(8.7781, 15.7638, 3.8082)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F1E #731E7F
analogous
#5A7F1E #2A7F1E #1E7F42
triadic
#2A7F1E #1E2A7F #7F1E2A
tetradic
#2A7F1E #1E5A7F #731E7F #7F421E
square
#2A7F1E #1E5A7F #731E7F #7F421E
split-complementary
#2A7F1E #421E7F #7F1E5A
monochromatic
#091C07 #1A4D12 #2A7F1E #3AB12A #56D344

Accessibility & contrast

On white

5.06
#2A7F1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2A7F1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F1E
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F1E#FFFFFF#000000##FFFFFF
##2A7F1E1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730B
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#1A7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f1e;
/* rgb */ color: rgb(42, 127, 30);
/* oklch */ color: oklch(52.6% 0.154 141.4);
Tailwind
colors: {
  custom: {
    50: '#70a561',
    500: '#2a7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f1e;
$custom-light: #70a561;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f1e",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 112.577,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52567,
    "c": 0.15414,
    "h": 141.4
  },
  "luminance": 0.15765
}

Semantic roles & 50–950 ramp

primary
#2A7F1E
secondary
#A547B2
accent
#43E5D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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