#2D7F16#2D7F16

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

Color values

HEX#2D7F16
RGBrgb(45, 127, 22)
HSLhsl(107, 70%, 29%)
HSVhsv(107, 83%, 50%)
CMYKcmyk(64.6%, 0%, 82.7%, 50.2%)
CIE-LABlab(46.70, -43.94, 45.48)
CIE-LCHlch(46.70, 63.24, 134.01°)
OKLaboklab(52.61% -0.1206 0.101)
OKLCHoklch(52.61% 0.157 140.1)
XYZxyz(8.8160, 15.7937, 3.3428)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F16 #68167F
analogous
#627F16 #2D7F16 #167F34
triadic
#2D7F16 #162D7F #7F162D
tetradic
#2D7F16 #16627F #68167F #7F3416
square
#2D7F16 #16627F #68167F #7F3416
split-complementary
#2D7F16 #34167F #7F1662
monochromatic
#091A05 #1B4B0D #2D7F16 #3FB31F #58DC34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7F16#FFFFFF#000000##FFFFFF
##2D7F161.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)
#837300
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#217B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f16;
/* rgb */ color: rgb(45, 127, 22);
/* oklch */ color: oklch(52.6% 0.157 140.1);
Tailwind
colors: {
  custom: {
    50: '#72a55d',
    500: '#2d7f16',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f16;
$custom-light: #72a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f16",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 106.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52609,
    "c": 0.1573,
    "h": 140.1
  },
  "luminance": 0.15795
}

Semantic roles & 50–950 ramp

primary
#2D7F16
secondary
#9A3DB4
accent
#3BEDC6
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7F16

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

Preview Lab → · Contrast checker → · Palette generator →

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