#1F8A20#1F8A20

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

Color values

HEX#1F8A20
RGBrgb(31, 138, 32)
HSLhsl(121, 63%, 33%)
HSVhsv(121, 78%, 54%)
CMYKcmyk(77.5%, 0%, 76.8%, 45.9%)
CIE-LABlab(50.18, -49.91, 45.33)
CIE-LCHlch(50.18, 67.42, 137.75°)
OKLaboklab(55.42% -0.1354 0.1022)
OKLCHoklch(55.42% 0.17 143)
XYZxyz(9.9136, 18.5714, 4.4284)
Luminance0.1857 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A20 #8A1F89
analogous
#538A1F #1F8A20 #1F8A55
triadic
#1F8A20 #201F8A #8A201F
tetradic
#1F8A20 #1F538A #8A1F89 #8A551F
square
#1F8A20 #1F538A #8A1F89 #8A551F
split-complementary
#1F8A20 #551F8A #8A1F53
monochromatic
#092609 #145814 #1F8A20 #2ABC2C #4CD74E

Accessibility & contrast

On white

4.45
#1F8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8A20#FFFFFF#000000##000000
##1F8A201.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f8a20;
/* rgb */ color: rgb(31, 138, 32);
/* oklch */ color: oklch(55.4% 0.170 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ead63',
    500: '#1f8a20',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a20;
$custom-light: #6ead63;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a20",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 120.561,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55418,
    "c": 0.16967,
    "h": 143
  },
  "luminance": 0.18573
}

Semantic roles & 50–950 ramp

primary
#1F8A20
secondary
#BA4BB9
accent
#41E5E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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