#2F7F19#2F7F19

#2F7F19 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.155 H 140.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2F7F19
RGBrgb(47, 127, 25)
HSLhsl(107, 67%, 30%)
HSVhsv(107, 80%, 50%)
CMYKcmyk(63%, 0%, 80.3%, 50.2%)
CIE-LABlab(46.78, -43.24, 44.60)
CIE-LCHlch(46.78, 62.12, 134.12°)
OKLaboklab(52.7% -0.1187 0.0996)
OKLCHoklch(52.7% 0.155 140)
XYZxyz(8.9367, 15.8524, 3.5084)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F19 #69197F
analogous
#627F19 #2F7F19 #197F36
triadic
#2F7F19 #192F7F #7F192F
tetradic
#2F7F19 #19627F #69197F #7F3619
square
#2F7F19 #19627F #69197F #7F3619
split-complementary
#2F7F19 #36197F #7F1962
monochromatic
#091A05 #1C4C0F #2F7F19 #42B223 #5CD83A

Accessibility & contrast

On white

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

On black

4.17
#2F7F19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F7F19#FFFFFF#000000##FFFFFF
##2F7F191.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f7f19;
/* rgb */ color: rgb(47, 127, 25);
/* oklch */ color: oklch(52.7% 0.155 140.0);
Tailwind
colors: {
  custom: {
    50: '#72a55e',
    500: '#2f7f19',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f19;
$custom-light: #72a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f19",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 25
  },
  "hsl": {
    "h": 107.059,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52696,
    "c": 0.15493,
    "h": 140
  },
  "luminance": 0.15853
}

Semantic roles & 50–950 ramp

primary
#2F7F19
secondary
#9A41B3
accent
#3EEAC5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7F19

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

Preview Lab → · Contrast checker → · Palette generator →

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