#2F8517#2F8517

#2F8517 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.4% C 0.163 H 140.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2F8517
RGBrgb(47, 133, 23)
HSLhsl(107, 71%, 31%)
HSVhsv(107, 83%, 52%)
CMYKcmyk(64.7%, 0%, 82.7%, 47.8%)
CIE-LABlab(48.81, -45.58, 47.17)
CIE-LCHlch(48.81, 65.59, 134.02°)
OKLaboklab(54.37% -0.1251 0.1046)
OKLCHoklch(54.37% 0.163 140.1)
XYZxyz(9.7140, 17.4403, 3.6648)
Luminance0.1744 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8517 #6D1785
analogous
#668517 #2F8517 #178536
triadic
#2F8517 #172F85 #85172F
tetradic
#2F8517 #176685 #6D1785 #853617
square
#2F8517 #176685 #6D1785 #853617
split-complementary
#2F8517 #361785 #851766
monochromatic
#0A1D05 #1D510E #2F8517 #41B920 #5DDD3A

Accessibility & contrast

On white

4.68
#2F8517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#2F8517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8517
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8517#FFFFFF#000000##FFFFFF
##2F85171.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#228071
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f8517;
/* rgb */ color: rgb(47, 133, 23);
/* oklch */ color: oklch(54.4% 0.163 140.1);
Tailwind
colors: {
  custom: {
    50: '#74a95f',
    500: '#2f8517',
    950: '#000000',
  },
}
SCSS
$custom: #2f8517;
$custom-light: #74a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8517",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 106.909,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54372,
    "c": 0.1631,
    "h": 140.1
  },
  "luminance": 0.17441
}

Semantic roles & 50–950 ramp

primary
#2F8517
secondary
#9E3FB9
accent
#3BEDC6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F8517

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

Preview Lab → · Contrast checker → · Palette generator →

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