#1FA040#1FA040

#1FA040 is a mid, vivid green. Relative luminance 0.258; OKLCH L 61.9% C 0.173 H 146.9°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#1FA040
RGBrgb(31, 160, 64)
HSLhsl(135, 68%, 37%)
HSVhsv(135, 81%, 63%)
CMYKcmyk(80.6%, 0%, 60%, 37.3%)
CIE-LABlab(57.85, -53.87, 39.92)
CIE-LCHlch(57.85, 67.05, 143.46°)
OKLaboklab(61.88% -0.1449 0.0944)
OKLCHoklch(61.88% 0.173 146.9)
XYZxyz(14.0602, 25.8014, 9.0886)
Luminance0.2580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1FA040 #A01F7F
analogous
#3EA01F #1FA040 #1FA081
triadic
#1FA040 #401FA0 #A0401F
tetradic
#1FA040 #1F3EA0 #A01F7F #A0811F
square
#1FA040 #1F3EA0 #A01F7F #A0811F
split-complementary
#1FA040 #811FA0 #A01F3E
monochromatic
#0B3917 #156D2B #1FA040 #29D355 #5ADF7C

Accessibility & contrast

On white

3.41
#1FA040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#1FA040 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1FA040
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1FA040#FFFFFF#000000##000000
##1FA0401.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29136
Deuteranopia (green-blind)
#948748
Tritanopia (blue-blind)
#009C8B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #1fa040;
/* rgb */ color: rgb(31, 160, 64);
/* oklch */ color: oklch(61.9% 0.173 146.9);
Tailwind
colors: {
  custom: {
    50: '#72bd78',
    500: '#1fa040',
    950: '#000000',
  },
}
SCSS
$custom: #1fa040;
$custom-light: #72bd78;
$custom-dark: #000000;
JSON
{
  "hex": "#1fa040",
  "rgb": {
    "r": 31,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 135.349,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61875,
    "c": 0.17289,
    "h": 146.9
  },
  "luminance": 0.25803
}

Semantic roles & 50–950 ramp

primary
#1FA040
secondary
#C358A8
accent
#3DBEEA
background
#F7FBF7
surface
#EEF7ED
border
#C9D0C8
text
#091209
muted
#7B817B

Preview Lab

Preview with #1FA040

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

Preview Lab → · Contrast checker → · Palette generator →

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