#2F6717#2F6717

#2F6717 is a mid, vivid green. Relative luminance 0.104; OKLCH L 45.9% C 0.126 H 138.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2F6717
RGBrgb(47, 103, 23)
HSLhsl(102, 63%, 25%)
HSVhsv(102, 78%, 40%)
CMYKcmyk(54.4%, 0%, 77.7%, 59.6%)
CIE-LABlab(38.49, -33.85, 37.21)
CIE-LCHlch(38.49, 50.31, 132.29°)
OKLaboklab(45.85% -0.0935 0.0838)
OKLCHoklch(45.85% 0.126 138.1)
XYZxyz(6.1770, 10.3662, 2.4858)
Luminance0.1037 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6717 #4F1767
analogous
#576717 #2F6717 #176727
triadic
#2F6717 #172F67 #67172F
tetradic
#2F6717 #175767 #4F1767 #672717
square
#2F6717 #175767 #4F1767 #672717
split-complementary
#2F6717 #271767 #671757
monochromatic
#0B1906 #18350C #2F6717 #469922 #5DCB2D

Accessibility & contrast

On white

6.83
#2F6717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F6717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6717
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6717#FFFFFF#000000##FFFFFF
##2F67171.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5E08
Deuteranopia (green-blind)
#63591F
Tritanopia (blue-blind)
#2B6358
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f6717;
/* rgb */ color: rgb(47, 103, 23);
/* oklch */ color: oklch(45.9% 0.126 138.1);
Tailwind
colors: {
  custom: {
    50: '#6e935a',
    500: '#2f6717',
    950: '#000000',
  },
}
SCSS
$custom: #2f6717;
$custom-light: #6e935a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6717",
  "rgb": {
    "r": 47,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 102,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.4585,
    "c": 0.12561,
    "h": 138.1
  },
  "luminance": 0.10367
}

Semantic roles & 50–950 ramp

primary
#2F6717
secondary
#803D9D
accent
#41E7B5
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2F6717

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

Preview Lab → · Contrast checker → · Palette generator →

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