#2D7F27#2D7F27

#2D7F27 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.147 H 142.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2D7F27
RGBrgb(45, 127, 39)
HSLhsl(116, 53%, 33%)
HSVhsv(116, 69%, 50%)
CMYKcmyk(64.6%, 0%, 69.3%, 50.2%)
CIE-LABlab(46.82, -42.56, 39.12)
CIE-LCHlch(46.82, 57.81, 137.41°)
OKLaboklab(52.74% -0.1159 0.0901)
OKLCHoklch(52.74% 0.147 142.2)
XYZxyz(9.0373, 15.8822, 4.5084)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F27 #79277F
analogous
#597F27 #2D7F27 #277F4D
triadic
#2D7F27 #272D7F #7F272D
tetradic
#2D7F27 #27597F #79277F #7F4D27
square
#2D7F27 #27597F #79277F #7F4D27
split-complementary
#2D7F27 #4D277F #7F2759
monochromatic
#0C210A #1C5019 #2D7F27 #3EAE35 #5DCB55

Accessibility & contrast

On white

5.03
#2D7F27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2D7F27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F27
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F27#FFFFFF#000000##FFFFFF
##2D7F271.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731B
Deuteranopia (green-blind)
#786C2F
Tritanopia (blue-blind)
#1E7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f27;
/* rgb */ color: rgb(45, 127, 39);
/* oklch */ color: oklch(52.7% 0.147 142.2);
Tailwind
colors: {
  custom: {
    50: '#71a566',
    500: '#2d7f27',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f27;
$custom-light: #71a566;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f27",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 39
  },
  "hsl": {
    "h": 115.909,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52743,
    "c": 0.1468,
    "h": 142.2
  },
  "luminance": 0.15883
}

Semantic roles & 50–950 ramp

primary
#2D7F27
secondary
#A952B0
accent
#4BDCD3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7F27

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

Preview Lab → · Contrast checker → · Palette generator →

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