#2D7B28#2D7B28

#2D7B28 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.141 H 142.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2D7B28
RGBrgb(45, 123, 40)
HSLhsl(116, 51%, 32%)
HSVhsv(116, 67%, 48%)
CMYKcmyk(63.4%, 0%, 67.5%, 51.8%)
CIE-LABlab(45.46, -40.92, 37.20)
CIE-LCHlch(45.46, 55.30, 137.73°)
OKLaboklab(51.63% -0.1114 0.0861)
OKLCHoklch(51.63% 0.141 142.3)
XYZxyz(8.5477, 14.8762, 4.4280)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7B28 #76287B
analogous
#567B28 #2D7B28 #287B4D
triadic
#2D7B28 #282D7B #7B282D
tetradic
#2D7B28 #28567B #76287B #7B4D28
square
#2D7B28 #28567B #76287B #7B4D28
split-complementary
#2D7B28 #4D287B #7B2856
monochromatic
#0B1F0A #1C4D19 #2D7B28 #3EA937 #5CC856

Accessibility & contrast

On white

5.28
#2D7B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2D7B28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7B28
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7B28#FFFFFF#000000##FFFFFF
##2D7B281.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701E
Deuteranopia (green-blind)
#74692F
Tritanopia (blue-blind)
#1F776A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7b28;
/* rgb */ color: rgb(45, 123, 40);
/* oklch */ color: oklch(51.6% 0.141 142.3);
Tailwind
colors: {
  custom: {
    50: '#70a266',
    500: '#2d7b28',
    950: '#000000',
  },
}
SCSS
$custom: #2d7b28;
$custom-light: #70a266;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7b28",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 116.386,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51626,
    "c": 0.14082,
    "h": 142.3
  },
  "luminance": 0.14877
}

Semantic roles & 50–950 ramp

primary
#2D7B28
secondary
#A752AD
accent
#4DDAD2
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7B28

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

Preview Lab → · Contrast checker → · Palette generator →

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