#1F8420#1F8420

#1F8420 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.7% C 0.163 H 143.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#1F8420
RGBrgb(31, 132, 32)
HSLhsl(121, 62%, 32%)
HSVhsv(121, 77%, 52%)
CMYKcmyk(76.5%, 0%, 75.8%, 48.2%)
CIE-LABlab(48.13, -47.88, 43.27)
CIE-LCHlch(48.13, 64.53, 137.90°)
OKLaboklab(53.71% -0.1299 0.0979)
OKLCHoklch(53.71% 0.163 143)
XYZxyz(9.0765, 16.8971, 4.1493)
Luminance0.1690 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8420 #841F83
analogous
#51841F #1F8420 #1F8453
triadic
#1F8420 #201F84 #84201F
tetradic
#1F8420 #1F5184 #841F83 #84531F
square
#1F8420 #1F5184 #841F83 #84531F
split-complementary
#1F8420 #531F84 #841F51
monochromatic
#082108 #135214 #1F8420 #2BB62C #49D44A

Accessibility & contrast

On white

4.79
#1F8420 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#1F8420 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8420
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8420#FFFFFF#000000##FFFFFF
##1F84201.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#7C6F2B
Tritanopia (blue-blind)
#008071
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f8420;
/* rgb */ color: rgb(31, 132, 32);
/* oklch */ color: oklch(53.7% 0.163 143.0);
Tailwind
colors: {
  custom: {
    50: '#6da962',
    500: '#1f8420',
    950: '#000000',
  },
}
SCSS
$custom: #1f8420;
$custom-light: #6da962;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8420",
  "rgb": {
    "r": 31,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 120.594,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53713,
    "c": 0.1627,
    "h": 143
  },
  "luminance": 0.16898
}

Semantic roles & 50–950 ramp

primary
#1F8420
secondary
#B748B6
accent
#43E3E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F8420

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

Preview Lab → · Contrast checker → · Palette generator →

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