#1F8B20#1F8B20

#1F8B20 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.7% C 0.171 H 142.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#1F8B20
RGBrgb(31, 139, 32)
HSLhsl(121, 64%, 33%)
HSVhsv(121, 78%, 55%)
CMYKcmyk(77.7%, 0%, 77%, 45.5%)
CIE-LABlab(50.52, -50.24, 45.67)
CIE-LCHlch(50.52, 67.89, 137.73°)
OKLaboklab(55.7% -0.1363 0.1029)
OKLCHoklch(55.7% 0.171 142.9)
XYZxyz(10.0578, 18.8597, 4.4764)
Luminance0.1886 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B20 #8B1F8A
analogous
#548B1F #1F8B20 #1F8B56
triadic
#1F8B20 #201F8B #8B201F
tetradic
#1F8B20 #1F548B #8B1F8A #8B561F
square
#1F8B20 #1F548B #8B1F8A #8B561F
split-complementary
#1F8B20 #561F8B #8B1F54
monochromatic
#092709 #145914 #1F8B20 #2ABD2C #4DD74E

Accessibility & contrast

On white

4.40
#1F8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#1F8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B20
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B20#FFFFFF#000000##000000
##1F8B201.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D09
Deuteranopia (green-blind)
#82752C
Tritanopia (blue-blind)
#008777
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b20;
/* rgb */ color: rgb(31, 139, 32);
/* oklch */ color: oklch(55.7% 0.171 142.9);
Tailwind
colors: {
  custom: {
    50: '#6fae63',
    500: '#1f8b20',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b20;
$custom-light: #6fae63;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b20",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 120.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55701,
    "c": 0.17081,
    "h": 142.9
  },
  "luminance": 0.18861
}

Semantic roles & 50–950 ramp

primary
#1F8B20
secondary
#BA4CB9
accent
#41E5E7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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