#2D7C18#2D7C18

#2D7C18 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.153 H 140.1°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2D7C18
RGBrgb(45, 124, 24)
HSLhsl(107, 68%, 29%)
HSVhsv(107, 81%, 49%)
CMYKcmyk(63.7%, 0%, 80.6%, 51.4%)
CIE-LABlab(45.69, -42.70, 43.87)
CIE-LCHlch(45.69, 61.22, 134.22°)
OKLaboklab(51.77% -0.1172 0.0979)
OKLCHoklch(51.77% 0.153 140.1)
XYZxyz(8.4543, 15.0383, 3.3211)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7C18 #67187C
analogous
#5F7C18 #2D7C18 #187C35
triadic
#2D7C18 #182D7C #7C182D
tetradic
#2D7C18 #185F7C #67187C #7C3518
square
#2D7C18 #185F7C #67187C #7C3518
split-complementary
#2D7C18 #35187C #7C185F
monochromatic
#091A05 #1A490E #2D7C18 #40AF22 #58D836

Accessibility & contrast

On white

5.24
#2D7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2D7C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7C18
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7C18#FFFFFF#000000##FFFFFF
##2D7C181.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#227869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7c18;
/* rgb */ color: rgb(45, 124, 24);
/* oklch */ color: oklch(51.8% 0.153 140.1);
Tailwind
colors: {
  custom: {
    50: '#71a35e',
    500: '#2d7c18',
    950: '#000000',
  },
}
SCSS
$custom: #2d7c18;
$custom-light: #71a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7c18",
  "rgb": {
    "r": 45,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 107.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51772,
    "c": 0.15269,
    "h": 140.1
  },
  "luminance": 0.15039
}

Semantic roles & 50–950 ramp

primary
#2D7C18
secondary
#993FB1
accent
#3DEAC6
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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