#2F8417#2F8417

#2F8417 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.1% C 0.162 H 140.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2F8417
RGBrgb(47, 132, 23)
HSLhsl(107, 70%, 30%)
HSVhsv(107, 83%, 52%)
CMYKcmyk(64.4%, 0%, 82.6%, 48.2%)
CIE-LABlab(48.47, -45.22, 46.85)
CIE-LCHlch(48.47, 65.11, 133.98°)
OKLaboklab(54.09% -0.1241 0.104)
OKLCHoklch(54.09% 0.162 140.1)
XYZxyz(9.5778, 17.1678, 3.6194)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8417 #6C1784
analogous
#658417 #2F8417 #178435
triadic
#2F8417 #172F84 #84172F
tetradic
#2F8417 #176584 #6C1784 #843517
square
#2F8417 #176584 #6C1784 #843517
split-complementary
#2F8417 #351784 #841765
monochromatic
#0A1C05 #1C500E #2F8417 #42B820 #5DDC39

Accessibility & contrast

On white

4.74
#2F8417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2F8417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8417
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8417#FFFFFF#000000##FFFFFF
##2F84171.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7E7024
Tritanopia (blue-blind)
#237F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f8417;
/* rgb */ color: rgb(47, 132, 23);
/* oklch */ color: oklch(54.1% 0.162 140.1);
Tailwind
colors: {
  custom: {
    50: '#74a95e',
    500: '#2f8417',
    950: '#000000',
  },
}
SCSS
$custom: #2f8417;
$custom-light: #74a95e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8417",
  "rgb": {
    "r": 47,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 106.789,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54091,
    "c": 0.16192,
    "h": 140.1
  },
  "luminance": 0.17169
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F8417

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

Preview Lab → · Contrast checker → · Palette generator →

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