#2F8518#2F8518

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

Color values

HEX#2F8518
RGBrgb(47, 133, 24)
HSLhsl(107, 69%, 31%)
HSVhsv(107, 82%, 52%)
CMYKcmyk(64.7%, 0%, 82%, 47.8%)
CIE-LABlab(48.82, -45.52, 46.86)
CIE-LCHlch(48.82, 65.33, 134.17°)
OKLaboklab(54.38% -0.1249 0.1041)
OKLCHoklch(54.38% 0.163 140.2)
XYZxyz(9.7242, 17.4444, 3.7186)
Luminance0.1744 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8518 #6E1885
analogous
#658518 #2F8518 #188537
triadic
#2F8518 #182F85 #85182F
tetradic
#2F8518 #186585 #6E1885 #853718
square
#2F8518 #186585 #6E1885 #853718
split-complementary
#2F8518 #371885 #851865
monochromatic
#0A1D05 #1D510F #2F8518 #41B921 #5DDC3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F8518#FFFFFF#000000##FFFFFF
##2F85181.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)
#7E7125
Tritanopia (blue-blind)
#228071
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f8518;
/* rgb */ color: rgb(47, 133, 24);
/* oklch */ color: oklch(54.4% 0.163 140.2);
Tailwind
colors: {
  custom: {
    50: '#74a95f',
    500: '#2f8518',
    950: '#000000',
  },
}
SCSS
$custom: #2f8518;
$custom-light: #74a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8518",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 107.339,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54378,
    "c": 0.16262,
    "h": 140.2
  },
  "luminance": 0.17445
}

Semantic roles & 50–950 ramp

primary
#2F8518
secondary
#9F40B9
accent
#3CECC7
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F8518

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

Preview Lab → · Contrast checker → · Palette generator →

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