#2F8718#2F8718

#2F8718 is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.165 H 140.3°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2F8718
RGBrgb(47, 135, 24)
HSLhsl(108, 70%, 31%)
HSVhsv(108, 82%, 53%)
CMYKcmyk(65.2%, 0%, 82.2%, 47.1%)
CIE-LABlab(49.49, -46.25, 47.50)
CIE-LCHlch(49.49, 66.29, 134.24°)
OKLaboklab(54.94% -0.1269 0.1055)
OKLCHoklch(54.94% 0.165 140.3)
XYZxyz(10.0007, 17.9973, 3.8108)
Luminance0.1800 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8718 #701887
analogous
#668718 #2F8718 #188739
triadic
#2F8718 #182F87 #87182F
tetradic
#2F8718 #186687 #701887 #873918
square
#2F8718 #186687 #701887 #873918
split-complementary
#2F8718 #391887 #871866
monochromatic
#0B1F06 #1D530F #2F8718 #41BB21 #5EDC3D

Accessibility & contrast

On white

4.57
#2F8718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#2F8718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8718
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8718#FFFFFF#000000##000000
##2F87181.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#218273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f8718;
/* rgb */ color: rgb(47, 135, 24);
/* oklch */ color: oklch(54.9% 0.165 140.3);
Tailwind
colors: {
  custom: {
    50: '#74ab5f',
    500: '#2f8718',
    950: '#000000',
  },
}
SCSS
$custom: #2f8718;
$custom-light: #74ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8718",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 107.568,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54939,
    "c": 0.16497,
    "h": 140.3
  },
  "luminance": 0.17998
}

Semantic roles & 50–950 ramp

primary
#2F8718
secondary
#A140BB
accent
#3BEDC8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F8718

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

Preview Lab → · Contrast checker → · Palette generator →

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