#2D7528#2D7528

#2D7528 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.9% C 0.133 H 142.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#2D7528
RGBrgb(45, 117, 40)
HSLhsl(116, 49%, 31%)
HSVhsv(116, 66%, 46%)
CMYKcmyk(61.5%, 0%, 65.8%, 54.1%)
CIE-LABlab(43.41, -38.55, 34.92)
CIE-LCHlch(43.41, 52.01, 137.83°)
OKLaboklab(49.93% -0.105 0.0813)
OKLCHoklch(49.93% 0.133 142.3)
XYZxyz(7.8261, 13.4330, 4.1875)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7528 #702875
analogous
#537528 #2D7528 #287549
triadic
#2D7528 #282D75 #75282D
tetradic
#2D7528 #285375 #702875 #754928
square
#2D7528 #285375 #702875 #754928
split-complementary
#2D7528 #492875 #752853
monochromatic
#0A1A09 #1B4718 #2D7528 #3FA338 #5AC453

Accessibility & contrast

On white

5.70
#2D7528 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#2D7528 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7528
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7528#FFFFFF#000000##FFFFFF
##2D75281.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A1F
Deuteranopia (green-blind)
#6F642F
Tritanopia (blue-blind)
#217165
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2d7528;
/* rgb */ color: rgb(45, 117, 40);
/* oklch */ color: oklch(49.9% 0.133 142.3);
Tailwind
colors: {
  custom: {
    50: '#6f9d65',
    500: '#2d7528',
    950: '#000000',
  },
}
SCSS
$custom: #2d7528;
$custom-light: #6f9d65;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7528",
  "rgb": {
    "r": 45,
    "g": 117,
    "b": 40
  },
  "hsl": {
    "h": 116.104,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49929,
    "c": 0.13278,
    "h": 142.3
  },
  "luminance": 0.13434
}

Semantic roles & 50–950 ramp

primary
#2D7528
secondary
#A252A7
accent
#4FD9D0
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2D7528

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

Preview Lab → · Contrast checker → · Palette generator →

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