#2F7D1C#2F7D1C

#2F7D1C is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.151 H 140.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2F7D1C
RGBrgb(47, 125, 28)
HSLhsl(108, 63%, 30%)
HSVhsv(108, 78%, 49%)
CMYKcmyk(62.4%, 0%, 77.6%, 51%)
CIE-LABlab(46.12, -42.28, 42.89)
CIE-LCHlch(46.12, 60.22, 134.59°)
OKLaboklab(52.15% -0.1159 0.0964)
OKLCHoklch(52.15% 0.151 140.2)
XYZxyz(8.7151, 15.3546, 3.6028)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D1C #6A1C7D
analogous
#607D1C #2F7D1C #1C7D39
triadic
#2F7D1C #1C2F7D #7D1C2F
tetradic
#2F7D1C #1C607D #6A1C7D #7D391C
square
#2F7D1C #1C607D #6A1C7D #7D391C
split-complementary
#2F7D1C #391C7D #7D1C60
monochromatic
#091906 #1C4B11 #2F7D1C #42AF27 #5CD43F

Accessibility & contrast

On white

5.16
#2F7D1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2F7D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D1C
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D1C#FFFFFF#000000##FFFFFF
##2F7D1C1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817107
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#24796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d1c;
/* rgb */ color: rgb(47, 125, 28);
/* oklch */ color: oklch(52.2% 0.151 140.2);
Tailwind
colors: {
  custom: {
    50: '#72a360',
    500: '#2f7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d1c;
$custom-light: #72a360;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d1c",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 108.247,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.52152,
    "c": 0.1508,
    "h": 140.2
  },
  "luminance": 0.15355
}

Semantic roles & 50–950 ramp

primary
#2F7D1C
secondary
#9B44B1
accent
#41E6C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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