#1F8A4F#1F8A4F

#1F8A4F is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.131 H 153.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#1F8A4F
RGBrgb(31, 138, 79)
HSLhsl(147, 63%, 33%)
HSVhsv(147, 78%, 54%)
CMYKcmyk(77.5%, 0%, 42.8%, 45.9%)
CIE-LABlab(50.72, -43.47, 23.37)
CIE-LCHlch(50.72, 49.35, 151.74°)
OKLaboklab(56.04% -0.1171 0.058)
OKLCHoklch(56.04% 0.131 153.7)
XYZxyz(11.0638, 19.0315, 10.4860)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A4F #8A1F5A
analogous
#248A1F #1F8A4F #1F8A84
triadic
#1F8A4F #4F1F8A #8A4F1F
tetradic
#1F8A4F #1F248A #8A1F5A #8A841F
square
#1F8A4F #1F248A #8A1F5A #8A841F
split-complementary
#1F8A4F #841F8A #8A1F24
monochromatic
#092616 #145832 #1F8A4F #2ABC6C #4CD78B

Accessibility & contrast

On white

4.37
#1F8A4F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#1F8A4F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A4F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A4F#FFFFFF#000000##000000
##1F8A4F1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7E4B
Deuteranopia (green-blind)
#7D7553
Tritanopia (blue-blind)
#00887B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #1f8a4f;
/* rgb */ color: rgb(31, 138, 79);
/* oklch */ color: oklch(56.0% 0.131 153.7);
Tailwind
colors: {
  custom: {
    50: '#6cad81',
    500: '#1f8a4f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a4f;
$custom-light: #6cad81;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a4f",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 79
  },
  "hsl": {
    "h": 146.916,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56043,
    "c": 0.13062,
    "h": 153.7
  },
  "luminance": 0.19033
}

Semantic roles & 50–950 ramp

primary
#1F8A4F
secondary
#BA4B88
accent
#419CE6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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