#2F8D17#2F8D17

#2F8D17 is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.6% C 0.172 H 140.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2F8D17
RGBrgb(47, 141, 23)
HSLhsl(108, 72%, 32%)
HSVhsv(108, 84%, 55%)
CMYKcmyk(66.7%, 0%, 83.7%, 44.7%)
CIE-LABlab(51.51, -48.45, 49.67)
CIE-LCHlch(51.51, 69.39, 134.28°)
OKLaboklab(56.61% -0.1328 0.1099)
OKLCHoklch(56.61% 0.172 140.4)
XYZxyz(10.8513, 19.7149, 4.0439)
Luminance0.1972 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8D17 #75178D
analogous
#6A8D17 #2F8D17 #178D3A
triadic
#2F8D17 #172F8D #8D172F
tetradic
#2F8D17 #176A8D #75178D #8D3A17
square
#2F8D17 #176A8D #75178D #8D3A17
split-complementary
#2F8D17 #3A178D #8D176A
monochromatic
#0C2406 #1D580E #2F8D17 #41C220 #5FE03F

Accessibility & contrast

On white

4.25
#2F8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#2F8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8D17
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8D17#FFFFFF#000000##000000
##2F8D171.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#1F8878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f8d17;
/* rgb */ color: rgb(47, 141, 23);
/* oklch */ color: oklch(56.6% 0.172 140.4);
Tailwind
colors: {
  custom: {
    50: '#75af60',
    500: '#2f8d17',
    950: '#000000',
  },
}
SCSS
$custom: #2f8d17;
$custom-light: #75af60;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8d17",
  "rgb": {
    "r": 47,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 107.797,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56612,
    "c": 0.17237,
    "h": 140.4
  },
  "luminance": 0.19716
}

Semantic roles & 50–950 ramp

primary
#2F8D17
secondary
#A640C0
accent
#39EFCA
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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