#1F8D20#1F8D20

#1F8D20 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.3% C 0.173 H 142.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#1F8D20
RGBrgb(31, 141, 32)
HSLhsl(121, 64%, 34%)
HSVhsv(121, 78%, 55%)
CMYKcmyk(78%, 0%, 77.3%, 44.7%)
CIE-LABlab(51.20, -50.90, 46.34)
CIE-LCHlch(51.20, 68.84, 137.68°)
OKLaboklab(56.27% -0.1381 0.1043)
OKLCHoklch(56.27% 0.173 142.9)
XYZxyz(10.3500, 19.4441, 4.5738)
Luminance0.1945 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D20 #8D1F8C
analogous
#558D1F #1F8D20 #1F8D57
triadic
#1F8D20 #201F8D #8D201F
tetradic
#1F8D20 #1F558D #8D1F8C #8D571F
square
#1F8D20 #1F558D #8D1F8C #8D571F
split-complementary
#1F8D20 #571F8D #8D1F55
monochromatic
#092909 #145B15 #1F8D20 #2ABF2B #4ED850

Accessibility & contrast

On white

4.30
#1F8D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#1F8D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D20
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D20#FFFFFF#000000##000000
##1F8D201.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#84772C
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d20;
/* rgb */ color: rgb(31, 141, 32);
/* oklch */ color: oklch(56.3% 0.173 142.9);
Tailwind
colors: {
  custom: {
    50: '#6faf64',
    500: '#1f8d20',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d20;
$custom-light: #6faf64;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d20",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 120.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56267,
    "c": 0.1731,
    "h": 142.9
  },
  "luminance": 0.19445
}

Semantic roles & 50–950 ramp

primary
#1F8D20
secondary
#BB4DBA
accent
#41E5E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F8D20

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

Preview Lab → · Contrast checker → · Palette generator →

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