#2F6B17#2F6B17

#2F6B17 is a mid, vivid green. Relative luminance 0.112; OKLCH L 47.0% C 0.131 H 138.5°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#2F6B17
RGBrgb(47, 107, 23)
HSLhsl(103, 65%, 25%)
HSVhsv(103, 79%, 42%)
CMYKcmyk(56.1%, 0%, 78.5%, 58%)
CIE-LABlab(39.88, -35.53, 38.60)
CIE-LCHlch(39.88, 52.46, 132.63°)
OKLaboklab(47% -0.0981 0.0867)
OKLCHoklch(47% 0.131 138.5)
XYZxyz(6.5844, 11.1811, 2.6216)
Luminance0.1118 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6B17 #53176B
analogous
#596B17 #2F6B17 #176B29
triadic
#2F6B17 #172F6B #6B172F
tetradic
#2F6B17 #17596B #53176B #6B2917
square
#2F6B17 #17596B #53176B #6B2917
split-complementary
#2F6B17 #29176B #6B1759
monochromatic
#0B1905 #19390C #2F6B17 #459D22 #5BD02D

Accessibility & contrast

On white

6.49
#2F6B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2F6B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6B17
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6B17#FFFFFF#000000##FFFFFF
##2F6B171.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6106
Deuteranopia (green-blind)
#675C20
Tritanopia (blue-blind)
#2A675B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f6b17;
/* rgb */ color: rgb(47, 107, 23);
/* oklch */ color: oklch(47.0% 0.131 138.5);
Tailwind
colors: {
  custom: {
    50: '#6f965b',
    500: '#2f6b17',
    950: '#000000',
  },
}
SCSS
$custom: #2f6b17;
$custom-light: #6f965b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6b17",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 23
  },
  "hsl": {
    "h": 102.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.46997,
    "c": 0.13091,
    "h": 138.5
  },
  "luminance": 0.11182
}

Semantic roles & 50–950 ramp

primary
#2F6B17
secondary
#843DA1
accent
#40E8B8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2F6B17

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

Preview Lab → · Contrast checker → · Palette generator →

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