#2F6517#2F6517

#2F6517 is a mid, vivid green. Relative luminance 0.100; OKLCH L 45.3% C 0.123 H 137.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2F6517
RGBrgb(47, 101, 23)
HSLhsl(102, 63%, 24%)
HSVhsv(102, 77%, 40%)
CMYKcmyk(53.5%, 0%, 77.2%, 60.4%)
CIE-LABlab(37.79, -33.00, 36.51)
CIE-LCHlch(37.79, 49.22, 132.11°)
OKLaboklab(45.28% -0.0912 0.0824)
OKLCHoklch(45.28% 0.123 137.9)
XYZxyz(5.9804, 9.9731, 2.4203)
Luminance0.0997 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6517 #4D1765
analogous
#566517 #2F6517 #176526
triadic
#2F6517 #172F65 #65172F
tetradic
#2F6517 #175665 #4D1765 #652617
square
#2F6517 #175665 #4D1765 #652617
split-complementary
#2F6517 #261765 #651756
monochromatic
#0C1906 #18330C #2F6517 #469722 #5DC92E

Accessibility & contrast

On white

7.01
#2F6517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2F6517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6517
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6517#FFFFFF#000000##FFFFFF
##2F65171.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685C09
Deuteranopia (green-blind)
#61571F
Tritanopia (blue-blind)
#2B6156
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f6517;
/* rgb */ color: rgb(47, 101, 23);
/* oklch */ color: oklch(45.3% 0.123 137.9);
Tailwind
colors: {
  custom: {
    50: '#6e915a',
    500: '#2f6517',
    950: '#000000',
  },
}
SCSS
$custom: #2f6517;
$custom-light: #6e915a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6517",
  "rgb": {
    "r": 47,
    "g": 101,
    "b": 23
  },
  "hsl": {
    "h": 101.538,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45276,
    "c": 0.12293,
    "h": 137.9
  },
  "luminance": 0.09974
}

Semantic roles & 50–950 ramp

primary
#2F6517
secondary
#7E3C9B
accent
#42E6B3
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2F6517

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

Preview Lab → · Contrast checker → · Palette generator →

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