#2D7F18#2D7F18

#2D7F18 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.156 H 140.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2D7F18
RGBrgb(45, 127, 24)
HSLhsl(108, 68%, 30%)
HSVhsv(108, 81%, 50%)
CMYKcmyk(64.6%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.71, -43.81, 44.85)
CIE-LCHlch(46.71, 62.70, 134.33°)
OKLaboklab(52.62% -0.1202 0.1)
OKLCHoklch(52.62% 0.156 140.2)
XYZxyz(8.8360, 15.8017, 3.4484)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F18 #6A187F
analogous
#617F18 #2D7F18 #187F37
triadic
#2D7F18 #182D7F #7F182D
tetradic
#2D7F18 #18617F #6A187F #7F3718
square
#2D7F18 #18617F #6A187F #7F3718
split-complementary
#2D7F18 #37187F #7F1861
monochromatic
#091A05 #1B4C0E #2D7F18 #3FB222 #59D938

Accessibility & contrast

On white

5.05
#2D7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2D7F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F18
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F18#FFFFFF#000000##FFFFFF
##2D7F181.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#217B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f18;
/* rgb */ color: rgb(45, 127, 24);
/* oklch */ color: oklch(52.6% 0.156 140.2);
Tailwind
colors: {
  custom: {
    50: '#72a55e',
    500: '#2d7f18',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f18;
$custom-light: #72a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f18",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 107.767,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52621,
    "c": 0.1563,
    "h": 140.2
  },
  "luminance": 0.15803
}

Semantic roles & 50–950 ramp

primary
#2D7F18
secondary
#9C3FB3
accent
#3DEBC8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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