#1F8A1F#1F8A1F

#1F8A1F is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.4% C 0.170 H 142.8°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#1F8A1F
RGBrgb(31, 138, 31)
HSLhsl(120, 63%, 33%)
HSVhsv(120, 78%, 54%)
CMYKcmyk(77.5%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.18, -49.98, 45.68)
CIE-LCHlch(50.18, 67.72, 137.57°)
OKLaboklab(55.41% -0.1357 0.1028)
OKLCHoklch(55.41% 0.17 142.8)
XYZxyz(9.9003, 18.5660, 4.3579)
Luminance0.1857 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A1F #8A1F8A
analogous
#548A1F #1F8A1F #1F8A54
triadic
#1F8A1F #1F1F8A #8A1F1F
tetradic
#1F8A1F #1F548A #8A1F8A #8A541F
square
#1F8A1F #1F548A #8A1F8A #8A541F
split-complementary
#1F8A1F #541F8A #8A1F54
monochromatic
#092609 #145814 #1F8A1F #2ABC2A #4CD74C

Accessibility & contrast

On white

4.46
#1F8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#1F8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A1F
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A1F#FFFFFF#000000##000000
##1F8A1F1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C07
Deuteranopia (green-blind)
#81742B
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f8a1f;
/* rgb */ color: rgb(31, 138, 31);
/* oklch */ color: oklch(55.4% 0.170 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ead63',
    500: '#1f8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a1f;
$custom-light: #6ead63;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a1f",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55411,
    "c": 0.17024,
    "h": 142.8
  },
  "luminance": 0.18567
}

Semantic roles & 50–950 ramp

primary
#1F8A1F
secondary
#BA4BBA
accent
#41E6E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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