#2D7B18#2D7B18

#2D7B18 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.151 H 140.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2D7B18
RGBrgb(45, 123, 24)
HSLhsl(107, 67%, 29%)
HSVhsv(107, 80%, 48%)
CMYKcmyk(63.4%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.34, -42.32, 43.54)
CIE-LCHlch(45.34, 60.72, 134.19°)
OKLaboklab(51.49% -0.1162 0.0972)
OKLCHoklch(51.49% 0.151 140.1)
XYZxyz(8.3296, 14.7890, 3.2796)
Luminance0.1479 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7B18 #66187B
analogous
#5F7B18 #2D7B18 #187B35
triadic
#2D7B18 #182D7B #7B182D
tetradic
#2D7B18 #185F7B #66187B #7B3518
square
#2D7B18 #185F7B #66187B #7B3518
split-complementary
#2D7B18 #35187B #7B185F
monochromatic
#091A05 #1A480E #2D7B18 #40AE22 #58D836

Accessibility & contrast

On white

5.31
#2D7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2D7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7B18
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7B18#FFFFFF#000000##FFFFFF
##2D7B181.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#227768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7b18;
/* rgb */ color: rgb(45, 123, 24);
/* oklch */ color: oklch(51.5% 0.151 140.1);
Tailwind
colors: {
  custom: {
    50: '#71a25d',
    500: '#2d7b18',
    950: '#000000',
  },
}
SCSS
$custom: #2d7b18;
$custom-light: #71a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7b18",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 107.273,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51488,
    "c": 0.15147,
    "h": 140.1
  },
  "luminance": 0.1479
}

Semantic roles & 50–950 ramp

primary
#2D7B18
secondary
#983FB0
accent
#3EEAC6
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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