#1F8E20#1F8E20

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

Color values

HEX#1F8E20
RGBrgb(31, 142, 32)
HSLhsl(121, 64%, 34%)
HSVhsv(121, 78%, 56%)
CMYKcmyk(78.2%, 0%, 77.5%, 44.3%)
CIE-LABlab(51.54, -51.23, 46.68)
CIE-LCHlch(51.54, 69.31, 137.66°)
OKLaboklab(56.55% -0.139 0.105)
OKLCHoklch(56.55% 0.174 142.9)
XYZxyz(10.4981, 19.7404, 4.6232)
Luminance0.1974 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E20 #8E1F8D
analogous
#568E1F #1F8E20 #1F8E58
triadic
#1F8E20 #201F8E #8E201F
tetradic
#1F8E20 #1F568E #8E1F8D #8E581F
square
#1F8E20 #1F568E #8E1F8D #8E581F
split-complementary
#1F8E20 #581F8E #8E1F56
monochromatic
#092A09 #145C15 #1F8E20 #2AC02B #4FD950

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8E20#FFFFFF#000000##000000
##1F8E201.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)
#918007
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e20;
/* rgb */ color: rgb(31, 142, 32);
/* oklch */ color: oklch(56.5% 0.174 142.9);
Tailwind
colors: {
  custom: {
    50: '#6fb064',
    500: '#1f8e20',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e20;
$custom-light: #6fb064;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e20",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 120.541,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56549,
    "c": 0.17424,
    "h": 142.9
  },
  "luminance": 0.19742
}

Semantic roles & 50–950 ramp

primary
#1F8E20
secondary
#BB4DBA
accent
#41E6E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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