#2D7018#2D7018

#2D7018 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.4% C 0.138 H 139.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#2D7018
RGBrgb(45, 112, 24)
HSLhsl(106, 65%, 27%)
HSVhsv(106, 79%, 44%)
CMYKcmyk(59.8%, 0%, 78.6%, 56.1%)
CIE-LABlab(41.55, -38.07, 39.84)
CIE-LCHlch(41.55, 55.11, 133.70°)
OKLaboklab(48.35% -0.1047 0.0895)
OKLCHoklch(48.35% 0.138 139.5)
XYZxyz(7.0409, 12.2116, 2.8500)
Luminance0.1221 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7018 #5B1870
analogous
#597018 #2D7018 #18702F
triadic
#2D7018 #182D70 #70182D
tetradic
#2D7018 #185970 #5B1870 #702F18
square
#2D7018 #185970 #5B1870 #702F18
split-complementary
#2D7018 #2F1870 #701859
monochromatic
#0A1905 #193E0D #2D7018 #41A223 #57D330

Accessibility & contrast

On white

6.10
#2D7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2D7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7018
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7018#FFFFFF#000000##FFFFFF
##2D70181.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736506
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#256C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d7018;
/* rgb */ color: rgb(45, 112, 24);
/* oklch */ color: oklch(48.4% 0.138 139.5);
Tailwind
colors: {
  custom: {
    50: '#6f9a5c',
    500: '#2d7018',
    950: '#000000',
  },
}
SCSS
$custom: #2d7018;
$custom-light: #6f9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7018",
  "rgb": {
    "r": 45,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 105.682,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48353,
    "c": 0.13774,
    "h": 139.5
  },
  "luminance": 0.12212
}

Semantic roles & 50–950 ramp

primary
#2D7018
secondary
#8D3EA5
accent
#40E8C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7018

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

Preview Lab → · Contrast checker → · Palette generator →

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