#1F8E1F#1F8E1F

#1F8E1F is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.5% C 0.175 H 142.8°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#1F8E1F
RGBrgb(31, 142, 31)
HSLhsl(120, 64%, 34%)
HSVhsv(120, 78%, 56%)
CMYKcmyk(78.2%, 0%, 78.2%, 44.3%)
CIE-LABlab(51.54, -51.31, 47.02)
CIE-LCHlch(51.54, 69.60, 137.49°)
OKLaboklab(56.54% -0.1393 0.1056)
OKLCHoklch(56.54% 0.175 142.8)
XYZxyz(10.4847, 19.7350, 4.5527)
Luminance0.1974 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E1F #8E1F8E
analogous
#578E1F #1F8E1F #1F8E57
triadic
#1F8E1F #1F1F8E #8E1F1F
tetradic
#1F8E1F #1F578E #8E1F8E #8E571F
square
#1F8E1F #1F578E #8E1F8E #8E571F
split-complementary
#1F8E1F #571F8E #8E1F57
monochromatic
#092A09 #145C14 #1F8E1F #2AC02A #4FD94F

Accessibility & contrast

On white

4.24
#1F8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#1F8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E1F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E1F#FFFFFF#000000##000000
##1F8E1F1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918004
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e1f;
/* rgb */ color: rgb(31, 142, 31);
/* oklch */ color: oklch(56.5% 0.175 142.8);
Tailwind
colors: {
  custom: {
    50: '#6fb063',
    500: '#1f8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e1f;
$custom-light: #6fb063;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e1f",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56542,
    "c": 0.17479,
    "h": 142.8
  },
  "luminance": 0.19736
}

Semantic roles & 50–950 ramp

primary
#1F8E1F
secondary
#BB4DBB
accent
#41E7E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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