#2D7F1A#2D7F1A

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

Color values

HEX#2D7F1A
RGBrgb(45, 127, 26)
HSLhsl(109, 66%, 30%)
HSVhsv(109, 80%, 50%)
CMYKcmyk(64.6%, 0%, 79.5%, 50.2%)
CIE-LABlab(46.72, -43.68, 44.18)
CIE-LCHlch(46.72, 62.13, 134.67°)
OKLaboklab(52.63% -0.1197 0.0988)
OKLCHoklch(52.63% 0.155 140.4)
XYZxyz(8.8576, 15.8104, 3.5620)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F1A #6C1A7F
analogous
#5F7F1A #2D7F1A #1A7F3A
triadic
#2D7F1A #1A2D7F #7F1A2D
tetradic
#2D7F1A #1A5F7F #6C1A7F #7F3A1A
square
#2D7F1A #1A5F7F #6C1A7F #7F3A1A
split-complementary
#2D7F1A #3A1A7F #7F1A5F
monochromatic
#091905 #1B4C10 #2D7F1A #3FB224 #59D73C

Accessibility & contrast

On white

5.05
#2D7F1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2D7F1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F1A
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F1A#FFFFFF#000000##FFFFFF
##2D7F1A1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837302
Deuteranopia (green-blind)
#796C25
Tritanopia (blue-blind)
#207B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f1a;
/* rgb */ color: rgb(45, 127, 26);
/* oklch */ color: oklch(52.6% 0.155 140.4);
Tailwind
colors: {
  custom: {
    50: '#71a55f',
    500: '#2d7f1a',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f1a;
$custom-light: #71a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f1a",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 108.713,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.52634,
    "c": 0.15524,
    "h": 140.4
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#2D7F1A
secondary
#9E42B3
accent
#3FE9C9
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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