#2D7F1C#2D7F1C

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

Color values

HEX#2D7F1C
RGBrgb(45, 127, 28)
HSLhsl(110, 64%, 30%)
HSVhsv(110, 78%, 50%)
CMYKcmyk(64.6%, 0%, 78%, 50.2%)
CIE-LABlab(46.74, -43.53, 43.48)
CIE-LCHlch(46.74, 61.53, 135.03°)
OKLaboklab(52.65% -0.1192 0.0977)
OKLCHoklch(52.65% 0.154 140.7)
XYZxyz(8.8807, 15.8196, 3.6839)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F1C #6E1C7F
analogous
#5E7F1C #2D7F1C #1C7F3C
triadic
#2D7F1C #1C2D7F #7F1C2D
tetradic
#2D7F1C #1C5E7F #6E1C7F #7F3C1C
square
#2D7F1C #1C5E7F #6E1C7F #7F3C1C
split-complementary
#2D7F1C #3C1C7F #7F1C5E
monochromatic
#091B06 #1B4D11 #2D7F1C #3FB127 #5AD540

Accessibility & contrast

On white

5.04
#2D7F1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D7F1C
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F1C#FFFFFF#000000##FFFFFF
##2D7F1C1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827306
Deuteranopia (green-blind)
#796C27
Tritanopia (blue-blind)
#207B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f1c;
/* rgb */ color: rgb(45, 127, 28);
/* oklch */ color: oklch(52.6% 0.154 140.7);
Tailwind
colors: {
  custom: {
    50: '#71a560',
    500: '#2d7f1c',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f1c;
$custom-light: #71a560;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f1c",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 109.697,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52648,
    "c": 0.15411,
    "h": 140.7
  },
  "luminance": 0.1582
}

Semantic roles & 50–950 ramp

primary
#2D7F1C
secondary
#A044B3
accent
#41E7CA
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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