#2D781F#2D781F

#2D781F is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.143 H 140.8°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#2D781F
RGBrgb(45, 120, 31)
HSLhsl(111, 59%, 30%)
HSVhsv(111, 74%, 47%)
CMYKcmyk(62.5%, 0%, 74.2%, 52.9%)
CIE-LABlab(44.36, -40.64, 39.93)
CIE-LCHlch(44.36, 56.97, 135.50°)
OKLaboklab(50.69% -0.1112 0.0907)
OKLCHoklch(50.69% 0.144 140.8)
XYZxyz(8.0456, 14.0890, 3.5915)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D781F #6A1F78
analogous
#5A781F #2D781F #1F783E
triadic
#2D781F #1F2D78 #781F2D
tetradic
#2D781F #1F5A78 #6A1F78 #783E1F
square
#2D781F #1F5A78 #6A1F78 #783E1F
split-complementary
#2D781F #3E1F78 #781F5A
monochromatic
#091806 #1B4712 #2D781F #3FA92C #59CE43

Accessibility & contrast

On white

5.50
#2D781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2D781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D781F
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D781F#FFFFFF#000000##FFFFFF
##2D781F1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D10
Deuteranopia (green-blind)
#726728
Tritanopia (blue-blind)
#227466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2d781f;
/* rgb */ color: rgb(45, 120, 31);
/* oklch */ color: oklch(50.7% 0.143 140.8);
Tailwind
colors: {
  custom: {
    50: '#70a060',
    500: '#2d781f',
    950: '#000000',
  },
}
SCSS
$custom: #2d781f;
$custom-light: #70a060;
$custom-dark: #000000;
JSON
{
  "hex": "#2d781f",
  "rgb": {
    "r": 45,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 110.562,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5069,
    "c": 0.1435,
    "h": 140.8
  },
  "luminance": 0.1409
}

Semantic roles & 50–950 ramp

primary
#2D781F
secondary
#9C47AB
accent
#46E2CA
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2D781F

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

Preview Lab → · Contrast checker → · Palette generator →

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