#2D7F22#2D7F22

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

Color values

HEX#2D7F22
RGBrgb(45, 127, 34)
HSLhsl(113, 58%, 32%)
HSVhsv(113, 73%, 50%)
CMYKcmyk(64.6%, 0%, 73.2%, 50.2%)
CIE-LABlab(46.78, -43.04, 41.20)
CIE-LCHlch(46.78, 59.58, 136.25°)
OKLaboklab(52.7% -0.1175 0.0938)
OKLCHoklch(52.7% 0.15 141.4)
XYZxyz(8.9598, 15.8513, 4.1005)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F22 #74227F
analogous
#5C7F22 #2D7F22 #227F46
triadic
#2D7F22 #222D7F #7F222D
tetradic
#2D7F22 #225C7F #74227F #7F4622
square
#2D7F22 #225C7F #74227F #7F4622
split-complementary
#2D7F22 #46227F #7F225C
monochromatic
#0B1E08 #1C4F15 #2D7F22 #3EAF2F #5CCF4C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7F22#FFFFFF#000000##FFFFFF
##2D7F221.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)
#827313
Deuteranopia (green-blind)
#786C2B
Tritanopia (blue-blind)
#1F7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f22;
/* rgb */ color: rgb(45, 127, 34);
/* oklch */ color: oklch(52.7% 0.150 141.4);
Tailwind
colors: {
  custom: {
    50: '#71a563',
    500: '#2d7f22',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f22;
$custom-light: #71a563;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f22",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 112.903,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52696,
    "c": 0.15035,
    "h": 141.4
  },
  "luminance": 0.15852
}

Semantic roles & 50–950 ramp

primary
#2D7F22
secondary
#A54BB2
accent
#47E1CF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2D7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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