#2D7F23#2D7F23

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

Color values

HEX#2D7F23
RGBrgb(45, 127, 35)
HSLhsl(113, 57%, 32%)
HSVhsv(113, 72%, 50%)
CMYKcmyk(64.6%, 0%, 72.4%, 50.2%)
CIE-LABlab(46.79, -42.95, 40.80)
CIE-LCHlch(46.79, 59.24, 136.47°)
OKLaboklab(52.71% -0.1172 0.0931)
OKLCHoklch(52.71% 0.15 141.6)
XYZxyz(8.9745, 15.8571, 4.1776)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F23 #75237F
analogous
#5B7F23 #2D7F23 #237F47
triadic
#2D7F23 #232D7F #7F232D
tetradic
#2D7F23 #235B7F #75237F #7F4723
square
#2D7F23 #235B7F #75237F #7F4723
split-complementary
#2D7F23 #47237F #7F235B
monochromatic
#0B1F09 #1C4F16 #2D7F23 #3EAF30 #5CCE4E

Accessibility & contrast

On white

5.03
#2D7F23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D7F23
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F23#FFFFFF#000000##FFFFFF
##2D7F231.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827315
Deuteranopia (green-blind)
#786C2C
Tritanopia (blue-blind)
#1F7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f23;
/* rgb */ color: rgb(45, 127, 35);
/* oklch */ color: oklch(52.7% 0.150 141.6);
Tailwind
colors: {
  custom: {
    50: '#71a563',
    500: '#2d7f23',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f23;
$custom-light: #71a563;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f23",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 113.478,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52705,
    "c": 0.14967,
    "h": 141.6
  },
  "luminance": 0.15858
}

Semantic roles & 50–950 ramp

primary
#2D7F23
secondary
#A64CB1
accent
#48E0D0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7F23

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

Preview Lab → · Contrast checker → · Palette generator →

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