#1F8A1D#1F8A1D

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

Color values

HEX#1F8A1D
RGBrgb(31, 138, 29)
HSLhsl(119, 65%, 33%)
HSVhsv(119, 79%, 54%)
CMYKcmyk(77.5%, 0%, 79%, 45.9%)
CIE-LABlab(50.16, -50.13, 46.37)
CIE-LCHlch(50.16, 68.29, 137.23°)
OKLaboklab(55.4% -0.1362 0.104)
OKLCHoklch(55.4% 0.171 142.6)
XYZxyz(9.8747, 18.5558, 4.2234)
Luminance0.1856 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A1D #881D8A
analogous
#558A1D #1F8A1D #1D8A51
triadic
#1F8A1D #1D1F8A #8A1D1F
tetradic
#1F8A1D #1D558A #881D8A #8A511D
square
#1F8A1D #1D558A #881D8A #8A511D
split-complementary
#1F8A1D #511D8A #8A1D55
monochromatic
#082508 #145712 #1F8A1D #2ABD28 #4BD949

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8A1D#FFFFFF#000000##000000
##1F8A1D1.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)
#8D7C02
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#008675
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f8a1d;
/* rgb */ color: rgb(31, 138, 29);
/* oklch */ color: oklch(55.4% 0.171 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ead62',
    500: '#1f8a1d',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a1d;
$custom-light: #6ead62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a1d",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 118.899,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.55397,
    "c": 0.17134,
    "h": 142.6
  },
  "luminance": 0.18557
}

Semantic roles & 50–950 ramp

primary
#1F8A1D
secondary
#B948BB
accent
#40E8E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F8A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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