#1F8E2F#1F8E2F

#1F8E2F is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.164 H 144.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#1F8E2F
RGBrgb(31, 142, 47)
HSLhsl(129, 64%, 34%)
HSVhsv(129, 78%, 56%)
CMYKcmyk(78.2%, 0%, 66.9%, 44.3%)
CIE-LABlab(51.66, -49.82, 40.75)
CIE-LCHlch(51.66, 64.36, 140.72°)
OKLaboklab(56.68% -0.1345 0.0945)
OKLCHoklch(56.68% 0.164 144.9)
XYZxyz(10.7504, 19.8413, 5.9519)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E2F #8E1F7E
analogous
#478E1F #1F8E2F #1F8E67
triadic
#1F8E2F #2F1F8E #8E2F1F
tetradic
#1F8E2F #1F478E #8E1F7E #8E671F
square
#1F8E2F #1F478E #8E1F7E #8E671F
split-complementary
#1F8E2F #671F8E #8E1F47
monochromatic
#092A0E #145C1E #1F8E2F #2AC040 #4FD963

Accessibility & contrast

On white

4.23
#1F8E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#1F8E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E2F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E2F#FFFFFF#000000##000000
##1F8E2F1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908023
Deuteranopia (green-blind)
#847838
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e2f;
/* rgb */ color: rgb(31, 142, 47);
/* oklch */ color: oklch(56.7% 0.164 144.9);
Tailwind
colors: {
  custom: {
    50: '#6eb06c',
    500: '#1f8e2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e2f;
$custom-light: #6eb06c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e2f",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 128.649,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56681,
    "c": 0.16437,
    "h": 144.9
  },
  "luminance": 0.19843
}

Semantic roles & 50–950 ramp

primary
#1F8E2F
secondary
#BB4DAC
accent
#41CFE7
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#081107
muted
#7B807A

Preview Lab

Preview with #1F8E2F

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

Preview Lab → · Contrast checker → · Palette generator →

#1F8E2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva