#2F7C1C#2F7C1C

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

Color values

HEX#2F7C1C
RGBrgb(47, 124, 28)
HSLhsl(108, 63%, 30%)
HSVhsv(108, 77%, 49%)
CMYKcmyk(62.1%, 0%, 77.4%, 51.4%)
CIE-LABlab(45.77, -41.90, 42.55)
CIE-LCHlch(45.77, 59.71, 134.56°)
OKLaboklab(51.87% -0.1149 0.0957)
OKLCHoklch(51.87% 0.15 140.2)
XYZxyz(8.5891, 15.1027, 3.5609)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C1C #691C7C
analogous
#5F7C1C #2F7C1C #1C7C39
triadic
#2F7C1C #1C2F7C #7C1C2F
tetradic
#2F7C1C #1C5F7C #691C7C #7C391C
square
#2F7C1C #1C5F7C #691C7C #7C391C
split-complementary
#2F7C1C #391C7C #7C1C5F
monochromatic
#091906 #1C4A11 #2F7C1C #42AE27 #5CD43F

Accessibility & contrast

On white

5.22
#2F7C1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2F7C1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C1C
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C1C#FFFFFF#000000##FFFFFF
##2F7C1C1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807008
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#25786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7c1c;
/* rgb */ color: rgb(47, 124, 28);
/* oklch */ color: oklch(51.9% 0.150 140.2);
Tailwind
colors: {
  custom: {
    50: '#72a35f',
    500: '#2f7c1c',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c1c;
$custom-light: #72a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c1c",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 28
  },
  "hsl": {
    "h": 108.125,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5187,
    "c": 0.14955,
    "h": 140.2
  },
  "luminance": 0.15103
}

Semantic roles & 50–950 ramp

primary
#2F7C1C
secondary
#9A44B0
accent
#42E6C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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