#2F6A17#2F6A17

#2F6A17 is a mid, vivid green. Relative luminance 0.110; OKLCH L 46.7% C 0.130 H 138.4°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#2F6A17
RGBrgb(47, 106, 23)
HSLhsl(103, 64%, 25%)
HSVhsv(103, 78%, 42%)
CMYKcmyk(55.7%, 0%, 78.3%, 58.4%)
CIE-LABlab(39.54, -35.11, 38.25)
CIE-LCHlch(39.54, 51.93, 132.55°)
OKLaboklab(46.71% -0.0969 0.086)
OKLCHoklch(46.71% 0.13 138.4)
XYZxyz(6.4807, 10.9738, 2.5871)
Luminance0.1097 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6A17 #52176A
analogous
#586A17 #2F6A17 #176A29
triadic
#2F6A17 #172F6A #6A172F
tetradic
#2F6A17 #17586A #52176A #6A2917
square
#2F6A17 #17586A #52176A #6A2917
split-complementary
#2F6A17 #29176A #6A1758
monochromatic
#0B1905 #19380C #2F6A17 #459C22 #5CCF2D

Accessibility & contrast

On white

6.57
#2F6A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2F6A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6A17
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6A17#FFFFFF#000000##FFFFFF
##2F6A171.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6006
Deuteranopia (green-blind)
#665B20
Tritanopia (blue-blind)
#2A665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f6a17;
/* rgb */ color: rgb(47, 106, 23);
/* oklch */ color: oklch(46.7% 0.130 138.4);
Tailwind
colors: {
  custom: {
    50: '#6f955a',
    500: '#2f6a17',
    950: '#000000',
  },
}
SCSS
$custom: #2f6a17;
$custom-light: #6f955a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6a17",
  "rgb": {
    "r": 47,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 102.651,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.46711,
    "c": 0.1296,
    "h": 138.4
  },
  "luminance": 0.10974
}

Semantic roles & 50–950 ramp

primary
#2F6A17
secondary
#833DA0
accent
#40E7B7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2F6A17

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

Preview Lab → · Contrast checker → · Palette generator →

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