#2D7B2F#2D7B2F

#2D7B2F is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.135 H 143.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2D7B2F
RGBrgb(45, 123, 47)
HSLhsl(122, 46%, 33%)
HSVhsv(122, 63%, 48%)
CMYKcmyk(63.4%, 0%, 61.8%, 51.8%)
CIE-LABlab(45.54, -40.10, 33.94)
CIE-LCHlch(45.54, 52.53, 139.75°)
OKLaboklab(51.71% -0.1088 0.0799)
OKLCHoklch(51.71% 0.135 143.7)
XYZxyz(8.6777, 14.9282, 5.1129)
Luminance0.1493 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7B2F #7B2D79
analogous
#527B2D #2D7B2F #2D7B56
triadic
#2D7B2F #2F2D7B #7B2F2D
tetradic
#2D7B2F #2D527B #7B2D79 #7B562D
square
#2D7B2F #2D527B #7B2D79 #7B562D
split-complementary
#2D7B2F #562D7B #7B2D52
monochromatic
#0C210D #1D4E1E #2D7B2F #3DA840 #5EC461

Accessibility & contrast

On white

5.27
#2D7B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2D7B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7B2F
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7B2F#FFFFFF#000000##FFFFFF
##2D7B2F1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D7027
Deuteranopia (green-blind)
#746935
Tritanopia (blue-blind)
#1E786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7b2f;
/* rgb */ color: rgb(45, 123, 47);
/* oklch */ color: oklch(51.7% 0.135 143.7);
Tailwind
colors: {
  custom: {
    50: '#6fa26a',
    500: '#2d7b2f',
    950: '#000000',
  },
}
SCSS
$custom: #2d7b2f;
$custom-light: #6fa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7b2f",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 121.538,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51708,
    "c": 0.135,
    "h": 143.7
  },
  "luminance": 0.14929
}

Semantic roles & 50–950 ramp

primary
#2D7B2F
secondary
#AB59A8
accent
#52D3D6
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2D7B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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