#2D7F1E#2D7F1E

#2D7F1E is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.153 H 140.9°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2D7F1E
RGBrgb(45, 127, 30)
HSLhsl(111, 62%, 31%)
HSVhsv(111, 76%, 50%)
CMYKcmyk(64.6%, 0%, 76.4%, 50.2%)
CIE-LABlab(46.75, -43.38, 42.75)
CIE-LCHlch(46.75, 60.90, 135.42°)
OKLaboklab(52.66% -0.1187 0.0964)
OKLCHoklch(52.66% 0.153 140.9)
XYZxyz(8.9055, 15.8295, 3.8141)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F1E #701E7F
analogous
#5D7F1E #2D7F1E #1E7F40
triadic
#2D7F1E #1E2D7F #7F1E2D
tetradic
#2D7F1E #1E5D7F #701E7F #7F401E
square
#2D7F1E #1E5D7F #701E7F #7F401E
split-complementary
#2D7F1E #401E7F #7F1E5D
monochromatic
#0A1C07 #1B4D12 #2D7F1E #3FB12A #5AD344

Accessibility & contrast

On white

5.04
#2D7F1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2D7F1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F1E
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F1E#FFFFFF#000000##FFFFFF
##2D7F1E1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d7f1e;
/* rgb */ color: rgb(45, 127, 30);
/* oklch */ color: oklch(52.7% 0.153 140.9);
Tailwind
colors: {
  custom: {
    50: '#71a561',
    500: '#2d7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f1e;
$custom-light: #71a561;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f1e",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 110.722,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52663,
    "c": 0.15292,
    "h": 140.9
  },
  "luminance": 0.1583
}

Semantic roles & 50–950 ramp

primary
#2D7F1E
secondary
#A247B2
accent
#43E5CC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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