#2F6D17#2F6D17

#2F6D17 is a mid, vivid green. Relative luminance 0.116; OKLCH L 47.6% C 0.134 H 138.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2F6D17
RGBrgb(47, 109, 23)
HSLhsl(103, 65%, 26%)
HSVhsv(103, 79%, 43%)
CMYKcmyk(56.9%, 0%, 78.9%, 57.3%)
CIE-LABlab(40.58, -36.35, 39.28)
CIE-LCHlch(40.58, 53.52, 132.78°)
OKLaboklab(47.57% -0.1003 0.0882)
OKLCHoklch(47.57% 0.134 138.7)
XYZxyz(6.7953, 11.6029, 2.6919)
Luminance0.1160 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6D17 #55176D
analogous
#5A6D17 #2F6D17 #176D2A
triadic
#2F6D17 #172F6D #6D172F
tetradic
#2F6D17 #175A6D #55176D #6D2A17
square
#2F6D17 #175A6D #55176D #6D2A17
split-complementary
#2F6D17 #2A176D #6D175A
monochromatic
#0B1905 #193A0C #2F6D17 #45A022 #5BD22C

Accessibility & contrast

On white

6.32
#2F6D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2F6D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6D17
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6D17#FFFFFF#000000##FFFFFF
##2F6D171.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706305
Deuteranopia (green-blind)
#695E20
Tritanopia (blue-blind)
#29695D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f6d17;
/* rgb */ color: rgb(47, 109, 23);
/* oklch */ color: oklch(47.6% 0.134 138.7);
Tailwind
colors: {
  custom: {
    50: '#6f975b',
    500: '#2f6d17',
    950: '#000000',
  },
}
SCSS
$custom: #2f6d17;
$custom-light: #6f975b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6d17",
  "rgb": {
    "r": 47,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 103.256,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.47569,
    "c": 0.13352,
    "h": 138.7
  },
  "luminance": 0.11603
}

Semantic roles & 50–950 ramp

primary
#2F6D17
secondary
#863DA3
accent
#40E8B9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2F6D17

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

Preview Lab → · Contrast checker → · Palette generator →

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