#2D7A2B#2D7A2B

#2D7A2B is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.137 H 142.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2D7A2B
RGBrgb(45, 122, 43)
HSLhsl(118, 48%, 32%)
HSVhsv(118, 65%, 48%)
CMYKcmyk(63.1%, 0%, 64.8%, 52.2%)
CIE-LABlab(45.15, -40.19, 35.45)
CIE-LCHlch(45.15, 53.59, 138.59°)
OKLaboklab(51.38% -0.1093 0.0827)
OKLCHoklch(51.38% 0.137 142.9)
XYZxyz(8.4773, 14.6506, 4.6661)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7A2B #782B7A
analogous
#557A2B #2D7A2B #2B7A51
triadic
#2D7A2B #2B2D7A #7A2B2D
tetradic
#2D7A2B #2B557A #782B7A #7A512B
square
#2D7A2B #2B557A #782B7A #7A512B
split-complementary
#2D7A2B #512B7A #7A2B55
monochromatic
#0C1F0B #1C4D1B #2D7A2B #3EA73B #5DC55A

Accessibility & contrast

On white

5.34
#2D7A2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2D7A2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7A2B
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7A2B#FFFFFF#000000##FFFFFF
##2D7A2B1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F22
Deuteranopia (green-blind)
#736832
Tritanopia (blue-blind)
#1F7669
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7a2b;
/* rgb */ color: rgb(45, 122, 43);
/* oklch */ color: oklch(51.4% 0.137 142.9);
Tailwind
colors: {
  custom: {
    50: '#6fa168',
    500: '#2d7a2b',
    950: '#000000',
  },
}
SCSS
$custom: #2d7a2b;
$custom-light: #6fa168;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7a2b",
  "rgb": {
    "r": 45,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 118.481,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51378,
    "c": 0.13706,
    "h": 142.9
  },
  "luminance": 0.14651
}

Semantic roles & 50–950 ramp

primary
#2D7A2B
secondary
#A956AB
accent
#50D7D4
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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