#2F6F17#2F6F17

#2F6F17 is a mid, vivid green. Relative luminance 0.120; OKLCH L 48.1% C 0.136 H 138.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#2F6F17
RGBrgb(47, 111, 23)
HSLhsl(104, 66%, 26%)
HSVhsv(104, 79%, 44%)
CMYKcmyk(57.7%, 0%, 79.3%, 56.5%)
CIE-LABlab(41.27, -37.16, 39.96)
CIE-LCHlch(41.27, 54.57, 132.92°)
OKLaboklab(48.14% -0.1025 0.0896)
OKLCHoklch(48.14% 0.136 138.8)
XYZxyz(7.0111, 12.0345, 2.7639)
Luminance0.1203 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6F17 #57176F
analogous
#5B6F17 #2F6F17 #176F2B
triadic
#2F6F17 #172F6F #6F172F
tetradic
#2F6F17 #175B6F #57176F #6F2B17
square
#2F6F17 #175B6F #57176F #6F2B17
split-complementary
#2F6F17 #2B176F #6F175B
monochromatic
#0B1905 #1A3C0C #2F6F17 #44A222 #5AD32D

Accessibility & contrast

On white

6.16
#2F6F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2F6F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6F17
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6F17#FFFFFF#000000##FFFFFF
##2F6F171.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736504
Deuteranopia (green-blind)
#6A5F20
Tritanopia (blue-blind)
#296B5E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f6f17;
/* rgb */ color: rgb(47, 111, 23);
/* oklch */ color: oklch(48.1% 0.136 138.8);
Tailwind
colors: {
  custom: {
    50: '#6f995b',
    500: '#2f6f17',
    950: '#000000',
  },
}
SCSS
$custom: #2f6f17;
$custom-light: #6f995b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6f17",
  "rgb": {
    "r": 47,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 103.636,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48141,
    "c": 0.1361,
    "h": 138.8
  },
  "luminance": 0.12035
}

Semantic roles & 50–950 ramp

primary
#2F6F17
secondary
#883DA5
accent
#3FE9BA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F6F17

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

Preview Lab → · Contrast checker → · Palette generator →

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