#1F8A4C#1F8A4C

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

Color values

HEX#1F8A4C
RGBrgb(31, 138, 76)
HSLhsl(145, 63%, 33%)
HSVhsv(145, 78%, 54%)
CMYKcmyk(77.5%, 0%, 44.9%, 45.9%)
CIE-LABlab(50.67, -44.04, 24.95)
CIE-LCHlch(50.67, 50.62, 150.47°)
OKLaboklab(55.99% -0.1185 0.0616)
OKLCHoklch(55.99% 0.134 152.5)
XYZxyz(10.9571, 18.9888, 9.9238)
Luminance0.1899 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A4C #8A1F5D
analogous
#278A1F #1F8A4C #1F8A81
triadic
#1F8A4C #4C1F8A #8A4C1F
tetradic
#1F8A4C #1F278A #8A1F5D #8A811F
square
#1F8A4C #1F278A #8A1F5D #8A811F
split-complementary
#1F8A4C #811F8A #8A1F27
monochromatic
#092615 #145830 #1F8A4C #2ABC68 #4CD787

Accessibility & contrast

On white

4.38
#1F8A4C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#1F8A4C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A4C
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A4C#FFFFFF#000000##000000
##1F8A4C1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f8a4c;
/* rgb */ color: rgb(31, 138, 76);
/* oklch */ color: oklch(56.0% 0.134 152.5);
Tailwind
colors: {
  custom: {
    50: '#6cad7f',
    500: '#1f8a4c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a4c;
$custom-light: #6cad7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a4c",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 76
  },
  "hsl": {
    "h": 145.234,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55985,
    "c": 0.13353,
    "h": 152.5
  },
  "luminance": 0.1899
}

Semantic roles & 50–950 ramp

primary
#1F8A4C
secondary
#BA4B8B
accent
#41A1E6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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