#2D7F15#2D7F15

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

Color values

HEX#2D7F15
RGBrgb(45, 127, 21)
HSLhsl(106, 72%, 29%)
HSVhsv(106, 83%, 50%)
CMYKcmyk(64.6%, 0%, 83.5%, 50.2%)
CIE-LABlab(46.70, -44.00, 45.79)
CIE-LCHlch(46.70, 63.50, 133.86°)
OKLaboklab(52.6% -0.1208 0.1015)
OKLCHoklch(52.6% 0.158 140)
XYZxyz(8.8065, 15.7899, 3.2930)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F15 #67157F
analogous
#627F15 #2D7F15 #157F32
triadic
#2D7F15 #152D7F #7F152D
tetradic
#2D7F15 #15627F #67157F #7F3215
square
#2D7F15 #15627F #67157F #7F3215
split-complementary
#2D7F15 #32157F #7F1562
monochromatic
#091A04 #1A4A0C #2D7F15 #40B41E #58DD31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7F15#FFFFFF#000000##FFFFFF
##2D7F151.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)
#796C22
Tritanopia (blue-blind)
#217B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f15;
/* rgb */ color: rgb(45, 127, 21);
/* oklch */ color: oklch(52.6% 0.158 140.0);
Tailwind
colors: {
  custom: {
    50: '#72a55d',
    500: '#2d7f15',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f15;
$custom-light: #72a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f15",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 106.415,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52603,
    "c": 0.15778,
    "h": 140
  },
  "luminance": 0.15791
}

Semantic roles & 50–950 ramp

primary
#2D7F15
secondary
#993CB4
accent
#39EEC5
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7F15

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

Preview Lab → · Contrast checker → · Palette generator →

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