#2D7D18#2D7D18

#2D7D18 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.154 H 140.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2D7D18
RGBrgb(45, 125, 24)
HSLhsl(108, 68%, 29%)
HSVhsv(108, 81%, 49%)
CMYKcmyk(64%, 0%, 80.8%, 51%)
CIE-LABlab(46.03, -43.07, 44.20)
CIE-LCHlch(46.03, 61.71, 134.26°)
OKLaboklab(52.05% -0.1182 0.0986)
OKLCHoklch(52.05% 0.154 140.2)
XYZxyz(8.5803, 15.2903, 3.3631)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D18 #68187D
analogous
#607D18 #2D7D18 #187D36
triadic
#2D7D18 #182D7D #7D182D
tetradic
#2D7D18 #18607D #68187D #7D3618
square
#2D7D18 #18607D #68187D #7D3618
split-complementary
#2D7D18 #36187D #7D1860
monochromatic
#091A05 #1B4A0E #2D7D18 #3FB022 #58D937

Accessibility & contrast

On white

5.17
#2D7D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2D7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7D18
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7D18#FFFFFF#000000##FFFFFF
##2D7D181.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#21796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7d18;
/* rgb */ color: rgb(45, 125, 24);
/* oklch */ color: oklch(52.1% 0.154 140.2);
Tailwind
colors: {
  custom: {
    50: '#71a35e',
    500: '#2d7d18',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d18;
$custom-light: #71a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d18",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 107.525,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52055,
    "c": 0.1539,
    "h": 140.2
  },
  "luminance": 0.15291
}

Semantic roles & 50–950 ramp

primary
#2D7D18
secondary
#9A3FB2
accent
#3DEBC7
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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